-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
590 additions
and
900 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
plugins { | ||
id 'java-gradle-plugin' // so we can assign and ID to our plugin | ||
id 'org.jetbrains.kotlin.jvm' version "1.9.0" | ||
id 'org.jetbrains.kotlin.jvm' version "1.9.22" | ||
id 'java' | ||
id 'java-library' | ||
} | ||
|
||
dependencies { | ||
api 'org.ow2.asm:asm:9.6' | ||
api 'com.google.code.gson:gson:2.10.1' | ||
compileOnly api("gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:1.1.8"), { | ||
exclude(group: 'com.google.guava', module: 'guava') | ||
} | ||
|
||
compileOnly api("com.google.guava:guava:33.1.0-jre") | ||
} | ||
|
||
java { | ||
sourceCompatibility = "11" | ||
targetCompatibility = "11" | ||
} | ||
|
||
kotlin { | ||
jvmToolchain 11 | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
gradlePluginPortal() | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
// here we register our plugin with an ID | ||
register("extra-java-module-info") { | ||
id = "extra-java-module-info" | ||
implementationClass = "org.gradle.sample.transform.javamodules.ExtraModuleInfoPlugin" | ||
} | ||
register("bubbles-gradle") { | ||
id = "bubbles-gradle" | ||
implementationClass = "com.ultreon.bubbles.gradle.BubblesGradlePlugin" | ||
register("gameutils") { | ||
id = "gameutils" | ||
implementationClass = "com.ultreon.gameutils.GameUtilsPlugin" | ||
} | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.ultreon.gameutils | ||
|
||
class Dep { | ||
String group | ||
String name | ||
String version | ||
String extension | ||
String classifier | ||
File file | ||
|
||
Dep(String group, String name, String version, String extension, String classifier, File file) { | ||
this.group = group | ||
this.name = name | ||
this.version = version | ||
this.extension = extension | ||
this.classifier = classifier | ||
this.file = file | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
buildSrc/src/main/groovy/com/ultreon/gameutils/GameUtilsExt.groovy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package com.ultreon.gameutils | ||
|
||
import org.gradle.api.Project | ||
import java.time.Instant | ||
|
||
class GameUtilsExt { | ||
String projectName | ||
String projectVersion = "dev" | ||
String projectGroup = "com.example" | ||
String projectId = "example-project" | ||
Project coreProject | ||
Project desktopProject | ||
Project packageProject | ||
int javaVersion = -1 | ||
boolean production = false | ||
final buildDate = Instant.now() | ||
File runDirectory | ||
String mainClass | ||
} |
Oops, something went wrong.