清理无用依赖

This commit is contained in:
yushijinhun 2018-04-04 19:42:09 +08:00
parent 77105062de
commit c80ccccb4f
No known key found for this signature in database
GPG key ID: 5BC167F73EA558E4

View file

@ -14,8 +14,9 @@ dependencies {
testCompile 'junit:junit:4.12'
}
sourceCompatibility = 8
def gitInfo = versionDetails()
sourceCompatibility = 1.8
version = '1.1.' + (System.getenv('BUILD_NUMBER')?:'0-SNAPSHOT') + '-' + gitInfo.gitHashFull[0..6]
if (!gitInfo.isCleanTag) version += '.dirty'
@ -26,12 +27,13 @@ jar {
'Implementation-Version': version,
'Implementation-Vendor': 'to2mbn',
'Implementation-Timestamp': new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
'Git-Commit': gitInfo.gitHashFull,
'Git-IsClean': gitInfo.isCleanTag,
'Automatic-Module-Name': 'org.to2mbn.authlibinjector',
'Premain-Class': 'org.to2mbn.authlibinjector.javaagent.AuthlibInjectorPremain',
'Agent-Class': 'org.to2mbn.authlibinjector.javaagent.AuthlibInjectorPremain',
'Can-Retransform-Classes': true,
'Can-Redefine-Classes': true
'Can-Redefine-Classes': true,
'Git-Commit': gitInfo.gitHashFull,
'Git-IsClean': gitInfo.isCleanTag
)
}
}
@ -48,14 +50,14 @@ shadowJar {
exclude 'META-INF/maven/**'
exclude 'module-info.class'
// nanohttpd
exclude 'LICENSE.txt'
exclude 'fi/iki/elonen/util/**'
exclude 'META-INF/nanohttpd/mimetypes.properties'
relocate 'org.objectweb.asm', 'org.to2mbn.authlibinjector.internal.org.objectweb.asm'
relocate 'fi.iki.elonen', 'org.to2mbn.authlibinjector.internal.fi.iki.elonen'
}
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
defaultTasks 'clean', 'shadowJar'