54 lines
1.2 KiB
Groovy
54 lines
1.2 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'application'
|
|
id 'maven-publish'
|
|
id 'com.github.johnrengelman.shadow' version '5.2.0'
|
|
}
|
|
|
|
mainClassName = 'tech.nevets.modbot.CoreBot'
|
|
|
|
group 'tech.nevets'
|
|
version '1.2.0'
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url "https://m2.dv8tion.net/releases"
|
|
}
|
|
maven {
|
|
url 'https://jitpack.io'
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'net.dv8tion:JDA:4.4.0_350'
|
|
implementation 'ch.qos.logback:logback-classic:1.4.0'
|
|
implementation 'com.google.code.gson:gson:2.9.0'
|
|
implementation 'me.carleslc.Simple-YAML:Simple-Yaml:1.7.2'
|
|
}
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
apply plugin: 'maven-publish'
|
|
publishing {
|
|
publications{
|
|
publish(MavenPublication) {
|
|
artifact("nexus/ModBot-$version" + ".jar") {
|
|
extension 'jar'
|
|
}
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name 'nexus'
|
|
url "https://repo.nevets.tech/repository/maven-releases/"
|
|
credentials {
|
|
username System.getenv('nexusUser')
|
|
password System.getenv('nexusPass')
|
|
}
|
|
}
|
|
}
|
|
} |