diff options
author | Gravy Boat <thatgravyboat@gmail.com> | 2021-09-23 19:25:26 -0230 |
---|---|---|
committer | Gravy Boat <thatgravyboat@gmail.com> | 2021-09-23 19:25:26 -0230 |
commit | 7dc51e6f1f280276d782e3c644099758ff01bdb7 (patch) | |
tree | 89bbbbcc22b100c20e752a750ccef0547c466229 /build.gradle | |
parent | f71b3ccee2ec9949de7e572375a45dbf1c3fadb8 (diff) | |
download | RewardClaim-7dc51e6f1f280276d782e3c644099758ff01bdb7.tar.gz RewardClaim-7dc51e6f1f280276d782e3c644099758ff01bdb7.tar.bz2 RewardClaim-7dc51e6f1f280276d782e3c644099758ff01bdb7.zip |
Initial Commit
Diffstat (limited to 'build.gradle')
-rw-r--r-- | build.gradle | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/build.gradle b/build.gradle index 88b8faf..c5d186a 100644 --- a/build.gradle +++ b/build.gradle @@ -1,12 +1,13 @@ plugins { id "java" id "com.github.johnrengelman.shadow" version "6.1.0" - id "net.minecraftforge.gradle.forge" version "6f53277" + id "net.minecraftforge.gradle.forge" version "ddb1eb0" + id "org.jetbrains.kotlin.jvm" version "1.5.31" } version = "1.0" -group = "dev.asbyth" -archivesBaseName = "ForgeTemplate" +group = "tech.thatgravyboat" +archivesBaseName = "RewardClaim" sourceCompatibility = targetCompatibility = 1.8 compileJava.options.encoding = 'UTF-8' @@ -19,16 +20,22 @@ minecraft { } configurations { - // Creates an extra configuration that implements `implementation` to be used later as the configuration that shades libraries include implementation.extendsFrom(include) } +repositories { + mavenCentral() + maven { url "https://repo.sk1er.club/repository/maven-public" } + maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } + maven { url 'https://repo.spongepowered.org/maven' } + maven { url 'https://jitpack.io' } +} + dependencies { - // How to normally add a dependency (If you don't want it to be added to the jar) - // implementation "com.example:example:1.0.0" - // If you would like to include it (have the library inside your jar) instead use - // include "com.example:example:1.0.0" + include 'org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.5.21' + include "gg.essential:loader-launchwrapper:1.1.1" + implementation "gg.essential:essential-1.8.9-forge:1457" } /** @@ -66,11 +73,22 @@ task moveResources { moveResources.dependsOn processResources classes.dependsOn moveResources -// This adds support to ("embed", "shade", "include") libraries into our JAR +tasks.reobfJar.dependsOn(tasks.shadowJar) + shadowJar { archiveClassifier.set('') configurations = [project.configurations.include] duplicatesStrategy DuplicatesStrategy.EXCLUDE } -jar.dependsOn shadowJar +compileKotlin { + kotlinOptions { + jvmTarget = "1.8" + freeCompilerArgs = ['-Xjvm-default=enable'] + } +} +compileTestKotlin { + kotlinOptions { + jvmTarget = "1.8" + } +} |