mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-05 23:33:36 +00:00
* Update branding in docs * Update branding in README.md * Update branding in plugin READMEs * Update branding in plugins * Update branding in libraries * Update branding in the remaining places * Add CONTRIBUTING.md and LICENSE files * More branding in docs
89 lines
2.7 KiB
Kotlin
89 lines
2.7 KiB
Kotlin
plugins {
|
|
id("java")
|
|
id("maven-publish")
|
|
id("com.github.johnrengelman.shadow")
|
|
}
|
|
|
|
group = "de.oliver"
|
|
version = findProperty("plugintestsVersion") as String
|
|
description = "Library for defining and running tests in a Minecraft server environment"
|
|
|
|
java {
|
|
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://repo.papermc.io/repository/maven-public/")
|
|
maven("https://repo.fancyinnovations.com/releases")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("io.papermc.paper:paper-api:1.21.5-R0.1-SNAPSHOT")
|
|
compileOnly("com.google.code.gson:gson:2.13.0")
|
|
implementation("org.jetbrains:annotations:26.0.2")
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.12.2")
|
|
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.12.2")
|
|
testImplementation("org.junit.platform:junit-platform-console-standalone:1.12.2")
|
|
testImplementation("com.google.code.gson:gson:2.13.0")
|
|
}
|
|
|
|
tasks {
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "fancyinnovationsReleases"
|
|
url = uri("https://repo.fancyinnovations.com/releases")
|
|
credentials(PasswordCredentials::class)
|
|
authentication {
|
|
isAllowInsecureProtocol = true
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
|
|
maven {
|
|
name = "fancyinnovationsSnapshots"
|
|
url = uri("https://repo.fancyinnovations.com/snapshots")
|
|
credentials(PasswordCredentials::class)
|
|
authentication {
|
|
isAllowInsecureProtocol = true
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("maven") {
|
|
groupId = "de.oliver"
|
|
artifactId = "plugin-tests"
|
|
version = findProperty("plugintestsVersion") as String
|
|
from(project.components["java"])
|
|
}
|
|
}
|
|
}
|
|
|
|
compileJava {
|
|
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
|
|
// 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.set(21)
|
|
}
|
|
|
|
java {
|
|
withSourcesJar()
|
|
withJavadocJar()
|
|
}
|
|
|
|
javadoc {
|
|
options.encoding = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
}
|
|
processResources {
|
|
filteringCharset = Charsets.UTF_8.name() // We want UTF-8 for everything
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
}
|