2022-04-29 00:13:27 +00:00
|
|
|
buildscript {
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2022-04-28 22:28:46 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
|
2022-04-29 00:13:27 +00:00
|
|
|
sourceCompatibility = 17
|
|
|
|
targetCompatibility = 17
|
|
|
|
|
2022-04-28 22:28:46 +00:00
|
|
|
group 'me.exzork.gcauth'
|
2022-05-29 11:10:05 +00:00
|
|
|
version '2.3.1'
|
2022-04-28 22:28:46 +00:00
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
2022-05-14 11:10:34 +00:00
|
|
|
implementation files('lib/grasscutter-1.1.2-dev.jar')
|
2022-04-28 22:49:43 +00:00
|
|
|
implementation 'org.springframework.security:spring-security-crypto:5.6.3'
|
|
|
|
implementation 'commons-logging:commons-logging:1.2'
|
2022-05-23 11:47:34 +00:00
|
|
|
implementation 'com.auth0:java-jwt:3.19.2'
|
2022-04-29 00:13:27 +00:00
|
|
|
implementation 'javax.servlet:javax.servlet-api:4.0.1'
|
2022-04-28 22:28:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2022-04-29 00:13:27 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
jar{
|
|
|
|
jar.baseName = 'gcauth'
|
|
|
|
from{
|
|
|
|
configurations.runtimeClasspath.collect{
|
2022-05-23 11:47:34 +00:00
|
|
|
if (it.name in ['spring-security-crypto-5.6.3.jar','commons-logging-1.2.jar','javax.servlet-api-4.0.1.jar','java-jwt-3.19.2.jar','jackson-annotations-2.13.2.jar','jackson-core-2.13.2.jar','jackson-databind-2.13.2.2.jar']) {
|
2022-04-29 00:13:27 +00:00
|
|
|
zipTree(it)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}{
|
|
|
|
exclude('META-INF/LICENSE*')
|
|
|
|
exclude("META-INF/versions/9/module-info.class")
|
|
|
|
exclude("META-INF/NOTICE")
|
|
|
|
}
|
|
|
|
destinationDir = file(".")
|
2022-04-28 22:28:46 +00:00
|
|
|
}
|