2024-08-01 14:41:06 +02:00
|
|
|
plugins {
|
|
|
|
kotlin("jvm") version "2.0.0"
|
2024-08-01 19:24:58 +02:00
|
|
|
id("maven-publish")
|
2024-08-01 14:41:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "org.thundernetwork"
|
2024-08-02 00:55:10 +02:00
|
|
|
version = "1.0.2"
|
2024-08-01 14:41:06 +02:00
|
|
|
|
|
|
|
repositories {
|
2024-08-31 19:09:54 +02:00
|
|
|
maven("https://repository.thundernetwork.org/repository/maven-central/")
|
2024-08-01 14:41:06 +02:00
|
|
|
}
|
|
|
|
|
2024-08-02 00:07:43 +02:00
|
|
|
kotlin {
|
|
|
|
jvmToolchain(17)
|
|
|
|
}
|
|
|
|
|
|
|
|
java {
|
|
|
|
withSourcesJar()
|
|
|
|
}
|
|
|
|
|
2024-08-01 14:41:06 +02:00
|
|
|
dependencies {
|
2024-08-02 00:55:10 +02:00
|
|
|
implementation(kotlin("stdlib"))
|
2024-08-01 19:24:58 +02:00
|
|
|
// testImplementation(kotlin("test"))
|
2024-08-01 14:41:06 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2024-08-02 00:07:43 +02:00
|
|
|
|
2024-08-02 00:55:10 +02:00
|
|
|
tasks.jar {
|
|
|
|
from(sourceSets.main.get().allSource)
|
|
|
|
manifest {
|
|
|
|
attributes(mapOf("Main-Class" to "org.thundernetwork.sitemapKt"))
|
|
|
|
}
|
|
|
|
}
|
2024-08-01 19:24:58 +02:00
|
|
|
|
|
|
|
publishing {
|
|
|
|
repositories {
|
2024-08-31 19:09:54 +02:00
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
name = "GitHub"
|
|
|
|
url = uri("https://maven.pkg.github.com/ThunderNetworkRaD/permission-checker")
|
|
|
|
credentials {
|
|
|
|
username = System.getenv("REPOSITORY_USERNAME")
|
|
|
|
password = System.getenv("REPOSITORY_PASSWORD")
|
|
|
|
}
|
|
|
|
}
|
2024-08-01 19:24:58 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
publications {
|
|
|
|
create<MavenPublication>("mavenJava") {
|
2024-08-02 00:55:10 +02:00
|
|
|
from(components["java"])
|
|
|
|
|
2024-08-01 19:24:58 +02:00
|
|
|
pom {
|
|
|
|
name = "Sitemap"
|
|
|
|
description = "A simply collection of utils for sitemap creation written in Kotlin"
|
|
|
|
licenses {
|
|
|
|
license {
|
|
|
|
name = "The Apache License, Version 2.0"
|
|
|
|
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
developers {
|
|
|
|
developer {
|
|
|
|
id = "killerbossoriginal"
|
|
|
|
name = "KillerBossOriginal"
|
|
|
|
email = "killerbossoriginal@thundernetwork.org"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
scm {
|
|
|
|
connection = "scm:git:git://github.com/ThunderNetworkRaD/sitemap.git"
|
|
|
|
developerConnection = "scm:git:ssh://github.com/ThunderNetworkRaD/sitemap.git"
|
|
|
|
url = "https://github.com/ThunderNetworkRaD/sitemap"
|
|
|
|
}
|
|
|
|
issueManagement {
|
|
|
|
system = "GitHub Issues"
|
|
|
|
url = "https://github.com/ThunderNetworkRaD/sitemap/issues"
|
|
|
|
}
|
|
|
|
ciManagement {
|
|
|
|
system = "GitHub Actions"
|
|
|
|
url = "https://github.com/ThunderNetworkRaD/sitemap/actions"
|
|
|
|
}
|
|
|
|
organization {
|
|
|
|
name = "ThunderNetwork"
|
|
|
|
url = "https://thundernetwork.org"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-08-01 14:41:06 +02:00
|
|
|
}
|