11plugins {
2- id(" java" )
2+ java
3+ jacoco
4+ `maven- publish`
35}
4-
5- group = " net.onelitefeather.vulpes"
6- version = " 1.0-SNAPSHOT"
7-
86repositories {
97 mavenCentral()
108}
119
1210dependencies {
13- testImplementation(platform(" org.junit:junit-bom:5.10.0" ))
14- testImplementation(" org.junit.jupiter:junit-jupiter" )
11+ implementation(platform(libs.mycelium.bom))
12+ implementation(libs.minestom)
13+ testImplementation(platform(libs.mycelium.bom))
14+ testImplementation(libs.junit.api)
15+ testImplementation(libs.junit.platform.launcher)
16+ testRuntimeOnly(libs.junit.engine)
17+ }
18+
19+ java {
20+ toolchain {
21+ languageVersion.set(JavaLanguageVersion .of(21 ))
22+ }
23+ withSourcesJar()
24+ withJavadocJar()
25+
1526}
1627
17- tasks.test {
18- useJUnitPlatform()
28+ tasks {
29+ test {
30+ testLogging {
31+ events(" passed" , " skipped" , " failed" )
32+ }
33+ }
34+ }
35+
36+ publishing {
37+ publications.create<MavenPublication >(" maven" ) {
38+ from(components[" java" ])
39+ version = rootProject.version as String
40+ artifactId = " vulpes"
41+ groupId = rootProject.group as String
42+ pom {
43+ name = " Vulpes"
44+ description = " Vulpes for OneLiteFeather"
45+ url = " https://github.com/OneLiteFeatherNET/vulpes"
46+ licenses {
47+ license {
48+ name = " AGPL-3.0"
49+ url = " https://www.gnu.org/licenses/agpl-3.0.en.html"
50+ }
51+ }
52+ developers {
53+ developer {
54+ id = " themeinerlp"
55+ name = " Phillipp Glanz"
56+ email = " p.glanz@madfix.me"
57+ }
58+ developer {
59+ id = " theEvilReaper"
60+ name = " Steffen Wonning"
61+ email = " steffenwx@gmail.com"
62+ }
63+ scm {
64+ connection = " scm:git:git://github.com:OneLiteFeatherNET/vulpes.git"
65+ developerConnection = " scm:git:ssh://git@github.com:OneLiteFeatherNET/vulpes.git"
66+ url = " https://github.com/OneLiteFeatherNET/vulpes"
67+ }
68+ }
69+ }
70+
71+ repositories {
72+ maven {
73+ authentication {
74+ credentials(PasswordCredentials ::class ) {
75+ // Those credentials need to be set under "Settings -> Secrets -> Actions" in your repository
76+ username = System .getenv(" ONELITEFEATHER_MAVEN_USERNAME" )
77+ password = System .getenv(" ONELITEFEATHER_MAVEN_PASSWORD" )
78+ }
79+ }
80+
81+ name = " OneLiteFeatherRepository"
82+ val releasesRepoUrl = uri(" https://repo.onelitefeather.dev/onelitefeather-releases" )
83+ val snapshotsRepoUrl = uri(" https://repo.onelitefeather.dev/onelitefeather-snapshots" )
84+ url = if (version.toString().contains(" SNAPSHOT" )) snapshotsRepoUrl else releasesRepoUrl
85+ }
86+ }
87+ }
1988}
0 commit comments