Moved code again
This commit is contained in:
@@ -0,0 +1,50 @@
|
|||||||
|
plugins {
|
||||||
|
id 'java'
|
||||||
|
id 'maven-publish'
|
||||||
|
}
|
||||||
|
|
||||||
|
group = 'de.winniepat'
|
||||||
|
version = '0.1.1'
|
||||||
|
|
||||||
|
|
||||||
|
java {
|
||||||
|
toolchain {
|
||||||
|
languageVersion = JavaLanguageVersion.of(21)
|
||||||
|
}
|
||||||
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven {url = "https://repo.papermc.io/repository/maven-public/" }
|
||||||
|
}
|
||||||
|
|
||||||
|
dependencies {
|
||||||
|
implementation 'io.papermc.paper:paper-api:1.21.11-R0.1-SNAPSHOT'
|
||||||
|
implementation 'com.google.code.gson:gson:2.13.1'
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.named('test') {
|
||||||
|
useJUnitPlatform()
|
||||||
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenJava(MavenPublication) {
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url = uri("https://maven.winniepat.de/repository/maven-releases/")
|
||||||
|
|
||||||
|
credentials {
|
||||||
|
username = project.property("publish.username")
|
||||||
|
password = project.property("publish.password")
|
||||||
|
// the credentials from before are not valid anymore (I am not that dumb)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user