diff options
| author | Lorenz <ESs95s3P5z8Pheb> | 2022-07-07 00:31:50 +0200 |
|---|---|---|
| committer | Lorenz <ESs95s3P5z8Pheb> | 2022-07-07 00:31:50 +0200 |
| commit | 26c0107adc319e169da89eb32ee50c4afb0709db (patch) | |
| tree | 9ee1ae505e5f82aba62f10c882af85a3acd6e483 /build.gradle | |
| parent | a358c9e7f2c765c994782fa412be6cdc4978c826 (diff) | |
| download | SkyHanni-26c0107adc319e169da89eb32ee50c4afb0709db.tar.gz SkyHanni-26c0107adc319e169da89eb32ee50c4afb0709db.tar.bz2 SkyHanni-26c0107adc319e169da89eb32ee50c4afb0709db.zip | |
init lorenz mod
Diffstat (limited to 'build.gradle')
| -rw-r--r-- | build.gradle | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/build.gradle b/build.gradle index 7a73a20c7..3bd0ac747 100644 --- a/build.gradle +++ b/build.gradle @@ -1,4 +1,5 @@ buildscript { + ext.kotlin_version = '1.7.0' repositories { maven { name = 'jitpack' @@ -6,15 +7,18 @@ buildscript { } maven { url = 'https://maven.minecraftforge.net/' } maven { url = 'https://repo.spongepowered.org/maven' } + mavenCentral() } dependencies { classpath 'com.github.asbyth:ForgeGradle:8708bf3e01' classpath 'com.github.xcfrg:MixinGradle:0.6-SNAPSHOT' classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0' + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } apply plugin: 'java' +apply plugin: 'kotlin' apply plugin: 'net.minecraftforge.gradle.forge' apply plugin: 'org.spongepowered.mixin' apply plugin: 'com.github.johnrengelman.shadow' @@ -22,15 +26,20 @@ apply plugin: 'com.github.johnrengelman.shadow' sourceCompatibility = 1.8 targetCompatibility = 1.8 -version = '1.13' +version = '0.1' group= 'com.thatgravyboat.skyblockhud' -archivesBaseName = 'SkyBlockHud' +archivesBaseName = 'LorenzMod' String mixinClassifier = 'dep' minecraft { version = '1.8.9-11.15.1.2318-1.8.9' runDir = 'run' mappings = 'stable_22' +// clientRunArgs.addAll( +// arrayOf( +// "--mixin mixins.skytils.json" +// ) +// ) } repositories { @@ -38,11 +47,17 @@ repositories { flatDir { dirs 'deps' } + mavenCentral() } dependencies { compile('org.spongepowered:mixin:0.7.11-SNAPSHOT') annotationProcessor('org.spongepowered:mixin:0.7.11-SNAPSHOT') + implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version" +} + +compileJava { + [compileJava, compileTestJava]*.options*.encoding = 'UTF-8' } mixin { @@ -101,4 +116,14 @@ task moveResources { } } moveResources.dependsOn processResources -classes.dependsOn moveResources
\ No newline at end of file +classes.dependsOn moveResources +compileKotlin { + kotlinOptions { + jvmTarget = "1.8" + } +} +compileTestKotlin { + kotlinOptions { + jvmTarget = "1.8" + } +}
\ No newline at end of file |
