76 lines
2.8 KiB
Groovy
76 lines
2.8 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'com.github.johnrengelman.shadow' version '8.1.1' // For Java 8
|
|
}
|
|
|
|
group = 'org.oldskooler'
|
|
// version = '1.5'
|
|
mainClassName = 'org.alexdev.havana.Havana'
|
|
|
|
repositories {
|
|
flatDir {
|
|
dirs 'libs'
|
|
}
|
|
maven { url 'https://jitpack.io' }
|
|
mavenCentral()
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
toolchain { languageVersion = JavaLanguageVersion.of(17) }
|
|
}
|
|
|
|
dependencies {
|
|
// https://mvnrepository.com/artifact/com.zaxxer/HikariCP
|
|
implementation group: 'com.zaxxer', name: 'HikariCP', version: '3.4.1'
|
|
|
|
// https://mvnrepository.com/artifact/org.mariadb.jdbc/mariadb-java-client
|
|
implementation group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '2.3.0'
|
|
|
|
// https://mvnrepository.com/artifact/io.netty/netty-all
|
|
implementation group: 'io.netty', name: 'netty-all', version: '4.1.33.Final'
|
|
|
|
// https://mvnrepository.com/artifact/org.slf4j/slf4j-api
|
|
implementation group: 'org.slf4j', name: 'slf4j-api', version: '1.7.25'
|
|
|
|
// https://mvnrepository.com/artifact/org.slf4j/slf4j-log4j12
|
|
implementation group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.25'
|
|
|
|
// https://mvnrepository.com/artifact/log4j/log4j/1.2.17
|
|
implementation group: 'log4j', name: 'log4j', version: '1.2.17'
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-configuration2
|
|
implementation group: 'org.apache.commons', name: 'commons-configuration2', version: '2.2'
|
|
|
|
// https://mvnrepository.com/artifact/org.apache.commons/commons-lang3
|
|
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
|
|
|
|
// https://mvnrepository.com/artifact/commons-validator/commons-validator
|
|
implementation group: 'commons-validator', name: 'commons-validator', version: '1.6'
|
|
|
|
// https://mvnrepository.com/artifact/com.google.code.gson/gson
|
|
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
|
|
|
|
// https://mvnrepository.com/artifact/org.springframework.security/spring-security-crypto
|
|
implementation group: 'org.springframework.security', name: 'spring-security-crypto', version: '5.7.3'
|
|
|
|
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on
|
|
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.70'
|
|
|
|
implementation 'com.maxmind.geoip2:geoip2:2.12.0'
|
|
implementation 'com.github.bhlangonijr:chesslib:1.1.1'
|
|
}
|
|
|
|
// Configure the shadow jar (fat jar). Defaults to classifier "all".
|
|
// The below sets the file name to the expected output
|
|
tasks.shadowJar {
|
|
// Produces <project.name>-<project.version>.jar (no "-all" suffix).
|
|
archiveClassifier.set("")
|
|
archiveFileName.set("${project.name}-${project.version}.jar")
|
|
}
|
|
|
|
artifacts {
|
|
archives tasks.named("shadowJar")
|
|
} |