Added: entitylib.shadow-conventions.gradle.kts
Renamed: entitylib.java-conventions.gradle.kts -> entitylib.library-conventions.gradle.kts Switched: johnrengelman's shadow to googler's shadow fork
This commit is contained in:
parent
6321195956
commit
0a1e95a17d
15 changed files with 55 additions and 23 deletions
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
`java-library`
|
entitylib.`shadow-conventions`
|
||||||
`el-version`
|
`el-version`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
id("java-library")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "me.tofaa.entitylib"
|
group = "me.tofaa.entitylib"
|
||||||
|
|
|
@ -9,5 +9,10 @@ kotlin {
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
gradlePluginPortal()
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation(libs.shadow)
|
||||||
|
}
|
5
buildSrc/libs.versions.toml
Normal file
5
buildSrc/libs.versions.toml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[versions]
|
||||||
|
shadow = "8.1.8"
|
||||||
|
|
||||||
|
[libraries]
|
||||||
|
shadow = { group = "io.github.goooler.shadow", name = "shadow-gradle-plugin", version.ref = "shadow" }
|
7
buildSrc/settings.gradle.kts
Normal file
7
buildSrc/settings.gradle.kts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
dependencyResolutionManagement {
|
||||||
|
versionCatalogs {
|
||||||
|
create("libs") {
|
||||||
|
from(files("libs.versions.toml"))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
plugins {
|
plugins {
|
||||||
java
|
`java-library`
|
||||||
`maven-publish`
|
`maven-publish`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -32,8 +32,6 @@ tasks {
|
||||||
|
|
||||||
withType<JavaCompile> {
|
withType<JavaCompile> {
|
||||||
options.encoding = Charsets.UTF_8.name()
|
options.encoding = Charsets.UTF_8.name()
|
||||||
// Set the release flag. This configures what version bytecode the compiler will emit, as well as what JDK APIs are usable.
|
|
||||||
// See https://openjdk.java.net/jeps/247 for more information.
|
|
||||||
options.release = 8
|
options.release = 8
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
plugins {
|
||||||
|
java
|
||||||
|
io.github.goooler.shadow
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks {
|
||||||
|
shadowJar {
|
||||||
|
archiveFileName = "EntityLib-${project.name}-${project.version}.jar"
|
||||||
|
archiveClassifier = null
|
||||||
|
|
||||||
|
mergeServiceFiles()
|
||||||
|
}
|
||||||
|
|
||||||
|
assemble {
|
||||||
|
dependsOn(shadowJar)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
configurations.implementation.get().extendsFrom(configurations.shadow.get())
|
|
@ -1,5 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
|
entitylib.`shadow-conventions`
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
`java-library`
|
entitylib.`shadow-conventions`
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -6,7 +6,6 @@ packetevents = "2.4.1-SNAPSHOT"
|
||||||
paper = "1.21-R0.1-SNAPSHOT"
|
paper = "1.21-R0.1-SNAPSHOT"
|
||||||
velocity = "3.3.0-SNAPSHOT"
|
velocity = "3.3.0-SNAPSHOT"
|
||||||
run-paper = "2.3.0"
|
run-paper = "2.3.0"
|
||||||
shadow = "8.1.1"
|
|
||||||
javapoet = "1.13.0"
|
javapoet = "1.13.0"
|
||||||
|
|
||||||
[libraries]
|
[libraries]
|
||||||
|
@ -30,4 +29,3 @@ adventure = ["adventure-api", "adventure-text-serializer-gson", "adventure-text-
|
||||||
[plugins]
|
[plugins]
|
||||||
run-paper = { id = "xyz.jpenilla.run-paper", version.ref = "run-paper" }
|
run-paper = { id = "xyz.jpenilla.run-paper", version.ref = "run-paper" }
|
||||||
run-velocity = { id = "xyz.jpenilla.run-velocity", version.ref = "run-paper" }
|
run-velocity = { id = "xyz.jpenilla.run-velocity", version.ref = "run-paper" }
|
||||||
shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadow" }
|
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
`java-library`
|
entitylib.`shadow-conventions`
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
`java-library`
|
entitylib.`shadow-conventions`
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
`java-library`
|
entitylib.`shadow-conventions`
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
`java-library`
|
entitylib.`shadow-conventions`
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
plugins {
|
plugins {
|
||||||
entitylib.`java-conventions`
|
entitylib.`library-conventions`
|
||||||
alias(libs.plugins.shadow)
|
entitylib.`shadow-conventions`
|
||||||
alias(libs.plugins.run.paper)
|
alias(libs.plugins.run.paper)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue