Skip to content

Commit

Permalink
Clean
Browse files Browse the repository at this point in the history
  • Loading branch information
MinRi2 committed Feb 10, 2024
1 parent 3896a1e commit 3fcba66
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 46 deletions.
21 changes: 21 additions & 0 deletions annotation/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
project(":annotation"){
apply plugin: "java-library"

java{
targetCompatibility = 21
sourceCompatibility = 21
}

repositories{
mavenCentral()
maven{ url "https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository" }
maven{ url 'https://www.jitpack.io' }
}

dependencies{
compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
compileOnly 'com.google.auto.service:auto-service:1.0-rc2'

annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'
}
}
44 changes: 7 additions & 37 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
apply plugin: "java"

version '1.0'
group = 'com.github.MinRi2'
version = '1.0'

sourceSets.main.java.srcDirs = ["src"]

java{
targetCompatibility = 8
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = 17
sourceCompatibility = 17
}

ext{
//the build number that this mod is made for
mindustryVersion = 'v146'
jabelVersion = "93fde537c7"
minModCoreVersion = "544f5fde08"

//windows sucks
isWindows = System.getProperty("os.name").toLowerCase().contains("windows")
sdkRoot = System.getenv("ANDROID_HOME") ?: System.getenv("ANDROID_SDK_ROOT") ?: "D:/Sdk"

modDir = "${System.getenv("APPDATA")}\\Mindustry\\mods"
}

//java 8 backwards compatibility flag
allprojects{
tasks.withType(JavaCompile){
options.compilerArgs.addAll(['--release', '17'])
Expand All @@ -40,38 +41,7 @@ dependencies{
compileOnly project(":annotation")
compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
compileOnly "com.github.Anuken.Mindustry:core:$mindustryVersion"

// annotationProcessor "com.github.Anuken:jabel:$jabelVersion"
}

project(":annotation"){
apply plugin: "java-library"

repositories{
mavenCentral()
maven{ url "https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository" }
maven{ url 'https://www.jitpack.io' }
}

dependencies{
compileOnly "com.github.Anuken.Arc:arc-core:$mindustryVersion"
compileOnly 'com.google.auto.service:auto-service:1.0-rc2'
annotationProcessor 'com.google.auto.service:auto-service:1.0-rc2'
}
}

project(":tools"){
apply plugin: "java"

repositories{
mavenCentral()
maven{ url "https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository" }
maven{ url 'https://www.jitpack.io' }
}

dependencies{
implementation "com.github.Anuken.Arc:arc-core:$mindustryVersion"
}
compileOnly "com.github.MinRi2:MinMocCore:$minModCoreVersion"
}

//force arc version
Expand Down
3 changes: 1 addition & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
org.gradle.jvmargs = --illegal-access=permit \
--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
org.gradle.jvmargs = --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED \
--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED \
Expand Down
3 changes: 1 addition & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ if(JavaVersion.current().ordinal() < JavaVersion.VERSION_17.ordinal())

rootProject.name = "MinerTools"
include 'annotation'
include 'tools'

include 'tools'
24 changes: 19 additions & 5 deletions tools/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
task syncBundle(dependsOn: classes, type: JavaExec){
mainClass = "bundle.SyncBundle"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = "../assets/bundles"
project(":tools"){
apply plugin: "java"

repositories{
mavenCentral()
maven{ url "https://raw.githubusercontent.com/Zelaux/MindustryRepo/master/repository" }
maven{ url 'https://www.jitpack.io' }
}

dependencies{
implementation "com.github.Anuken.Arc:arc-core:$mindustryVersion"
}

task syncBundle(dependsOn: classes, type: JavaExec){
mainClass = "bundle.SyncBundle"
classpath = sourceSets.main.runtimeClasspath
standardInput = System.in
workingDir = "../assets/bundles"
}
}

0 comments on commit 3fcba66

Please sign in to comment.