Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Commit

Permalink
Lombok time!
Browse files Browse the repository at this point in the history
  • Loading branch information
lyze237 committed Jun 20, 2021
1 parent f7b0264 commit e7341fc
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 1 deletion.
3 changes: 3 additions & 0 deletions core/build.gradle
Expand Up @@ -6,4 +6,7 @@ dependencies {
api "com.badlogicgames.gdx-controllers:gdx-controllers-core:$gdxControllersVersion"
api "com.github.tommyettinger:jbump:$jbumpVersion"
api "space.earlygrey:shapedrawer:$shapeDrawerVersion"

implementation "org.projectlombok:lombok:$lombok"
annotationProcessor "org.projectlombok:lombok:$lombok"
}
1 change: 1 addition & 0 deletions gradle.properties
Expand Up @@ -7,3 +7,4 @@ shapeDrawerVersion=2.4.0
gwtFrameworkVersion=2.8.2
gwtPluginVersion=1.1.12
gdxVersion=1.10.0
lombok=1.18.20
25 changes: 24 additions & 1 deletion html/build.gradle
Expand Up @@ -26,9 +26,11 @@ gwt {
compiler.strict = true
compiler.disableCastChecking = true
//// The next line can be useful to uncomment if you want output that hasn't been obfuscated.
// compiler.style = org.wisepersist.gradle.plugins.gwt.Style.DETAILED
compiler.style = org.wisepersist.gradle.plugins.gwt.Style.DETAILED
}

configurations { lom }

dependencies {
implementation project(':core')
implementation "com.badlogicgames.gdx:gdx:$gdxVersion:sources"
Expand All @@ -39,6 +41,9 @@ dependencies {
implementation "com.github.tommyettinger:jbump:$jbumpVersion:sources"
implementation "space.earlygrey:shapedrawer:$shapeDrawerVersion:sources"

lom "org.projectlombok:lombok:$lombok"
implementation configurations.lom.dependencies
annotationProcessor "org.projectlombok:lombok:$lombok"
}

import org.akhikhl.gretty.AppBeforeIntegrationTestTask
Expand Down Expand Up @@ -130,6 +135,24 @@ task distZip(type: Zip, dependsOn: dist){
destinationDir(file("build"))
}

draftCompileGwt {
doFirst {
jvmArgs "-javaagent:${configurations.lom.asPath}=ECJ"
}
}

compileGwt {
doFirst {
jvmArgs "-javaagent:${configurations.lom.asPath}=ECJ"
}
}

superDev {
doFirst {
jvmArgs "-javaagent:${configurations.lom.asPath}=ECJ"
}
}

tasks.compileGwt.dependsOn(addSource)
tasks.draftCompileGwt.dependsOn(addSource)
tasks.checkGwt.dependsOn(addSource)
Expand Down
3 changes: 3 additions & 0 deletions lwjgl3/build.gradle
Expand Up @@ -10,6 +10,9 @@ dependencies {
implementation "com.badlogicgames.gdx:gdx-backend-lwjgl3:$gdxVersion"
implementation "com.badlogicgames.gdx:gdx-platform:$gdxVersion:natives-desktop"
implementation "com.badlogicgames.gdx-controllers:gdx-controllers-desktop:$gdxControllersVersion"

implementation "org.projectlombok:lombok:$lombok"
annotationProcessor "org.projectlombok:lombok:$lombok"
}

import org.gradle.internal.os.OperatingSystem
Expand Down

0 comments on commit e7341fc

Please sign in to comment.