authlib-injector/build.gradle

38 lines
847 B
Groovy
Raw Normal View History

2017-08-12 16:42:31 +02:00
plugins {
id 'com.github.johnrengelman.shadow' version '2.0.1'
2017-08-13 12:01:52 +02:00
id 'com.palantir.git-version' version '0.8.0'
2017-08-12 16:42:31 +02:00
id 'java'
}
repositories {
mavenCentral()
2017-08-13 11:43:13 +02:00
maven { url 'https://libraries.minecraft.net/' }
2017-08-12 16:42:31 +02:00
}
dependencies {
compile 'org.ow2.asm:asm:5.2'
compile 'org.yaml:snakeyaml:1.18'
2017-08-13 11:43:13 +02:00
compileOnly ('net.minecraft:launchwrapper:1.12') {
transitive = false
}
2017-08-12 16:42:31 +02:00
testCompile 'junit:junit:4.12'
}
sourceCompatibility = 1.8
2017-08-13 12:01:52 +02:00
version = '1.0.' + (System.getenv('BUILD_NUMBER')?:'0-SNAPSHOT') + '-' + versionDetails().gitHash[0..6]
2017-08-12 16:42:31 +02:00
jar {
manifest {
attributes (
'Implementation-Title': project.name,
'Implementation-Version': version,
2017-08-13 11:43:13 +02:00
'Premain-Class': 'org.to2mbn.authlibinjector.javaagent.AuthlibInjectorPremain',
'TweakClass': 'org.to2mbn.authlibinjector.tweaker.AuthlibInjectorTweaker'
2017-08-12 16:42:31 +02:00
)
}
}
2017-08-13 11:43:13 +02:00
shadowJar {
classifier = null
}