Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Latest commit

 

History

History
59 lines (42 loc) · 1.83 KB

README.md

File metadata and controls

59 lines (42 loc) · 1.83 KB

Cleanfoot

This is a fork of Greenfoot 3.5.4 (the last version supporting Java 8) which was moved from Ant to Maven.

The goal of this project is to provide a Java 1.8 compatible, supported Greenfoot version with some fixes like a public greenfoot.Font(java.awt.Font) constructor, cleaned up code, up to date dependencies and of course libraries that are usable via Maven.

Usage

Maven

To use this library, you need to use the GammelCloud repo:

<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>

And the following dependency:

<dependency>
  <groupId>com.github.lfuelling</groupId>
  <artifactId>cleanfoot</artifactId>
  <version>3.5.7</version>
</dependency>

Gradle

If you use Gradle, you can reference the repository like this:

repositories {
        maven { url 'https://jitpack.io' }
}

and the dependency itself like this:

implementation 'com.github.lfuelling:cleanfoot:3.5.7'

Code

After adding it, the library can be used like the regular Greenfoot project is used (ie. no package names have been changed). The only thing you need to add is a launcher class that extends GreenfootScenarioApplication and has a main method to launch the application. If you need more information regarding using Greenfoot with Maven/Gradle and its implications, please see this blog post.

Development

  • The THIRD-PARTY.txt file is generated by running:
    • $ mvn license:add-third-party -Dlicense.outputDirectory=. -Dlicense.thirdPartyFilename=THIRD-PARTY.txt
    • The file bundled with Greenfoot/BlueJ is outdated.
  • Building is done using: $ mvn clean install -DskipTests
  • Publish is done using: $ mvn clean install -DskipTests deploy:deploy