Move build.gradle to kotlin
This commit is contained in:
parent
568d510bce
commit
a9198739ec
36
build.gradle
36
build.gradle
|
|
@ -1,36 +0,0 @@
|
|||
plugins {
|
||||
id 'java'
|
||||
id "com.github.johnrengelman.shadow" version "7.1.2"
|
||||
}
|
||||
|
||||
group 'org.adde0109'
|
||||
version '1.1.5B-alpha'
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name 'papermc'
|
||||
url 'https://repo.papermc.io/repository/maven-public/'
|
||||
}
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly 'com.velocitypowered:velocity-api'
|
||||
compileOnly 'com.velocitypowered:velocity-proxy'
|
||||
annotationProcessor 'com.velocitypowered:velocity-api'
|
||||
implementation 'com.electronwill.night-config:toml:3.6.5'
|
||||
implementation 'org.bstats:bstats-velocity:3.0.0'
|
||||
implementation 'org.apache.commons:commons-collections4:4.4'
|
||||
compileOnly 'io.netty:netty-buffer:4.1.85.Final'
|
||||
compileOnly 'io.netty:netty-transport:4.1.85.Final'
|
||||
}
|
||||
|
||||
shadowJar {
|
||||
relocate 'org.bstats', 'org.adde0109.ambassador'
|
||||
}
|
||||
|
||||
|
||||
assemble.dependsOn(shadowJar)
|
||||
tasks.shadowJar.configure {
|
||||
classifier = null
|
||||
}
|
||||
34
build.gradle.kts
Normal file
34
build.gradle.kts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
plugins {
|
||||
java
|
||||
idea
|
||||
id("com.github.johnrengelman.shadow") version "7.1.2"
|
||||
}
|
||||
|
||||
group = "org.adde0109"
|
||||
version = "1.1.5B-alpha"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven {
|
||||
name = "papermc"
|
||||
url = uri("https://repo.papermc.io/repository/maven-public/")
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("com.velocitypowered:velocity-api")
|
||||
compileOnly("com.velocitypowered:velocity-proxy")
|
||||
annotationProcessor("com.velocitypowered:velocity-api")
|
||||
implementation("com.electronwill.night-config:toml:3.6.6")
|
||||
implementation("org.bstats:bstats-velocity:3.0.0")
|
||||
implementation("org.apache.commons:commons-collections4:4.4")
|
||||
compileOnly("io.netty:netty-buffer:4.1.86.Final")
|
||||
compileOnly("io.netty:netty-transport:4.1.86.Final")
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
relocate("org.bstats", "org.adde0109.ambassador")
|
||||
archiveBaseName.set("Ambassador-Velocity")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user