Files
Ornot/build.gradle.kts
Josh Chester 2f5dfa5a26
All checks were successful
Java Google Checkstyle / Checkstyle Linter (push) Successful in 35s
Build with gradle / Build-with-gradle (push) Successful in 1m31s
Update readme and actions
Project now builds and runs unit tests, as well as linting with checkstyle.

Co-authored-by: Josh Chester <numbers@softwaresmyth.com>
Co-committed-by: Josh Chester <numbers@softwaresmyth.com>
2026-01-24 13:05:12 -06:00

73 lines
2.1 KiB
Kotlin

plugins {
id("java")
`maven-publish`
// Also commonly used for creating source/javadoc JARs
id("org.jetbrains.dokka") version "1.9.20"
}
group = "com.softwaresmyth"
version = "1.0-SNAPSHOT"
val mySecret = project.findProperty("gradleKey")
publishing {
// Define a publication, in this case for Maven
publications {
// other settings of publication
repositories {
maven {
name = "Gitea"
url = uri("https://gitea.softwaresmyth.com/api/packages/numbers/maven")
credentials(HttpHeaderCredentials::class) {
name = "Authorization"
value = "token $mySecret"
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
//
// create<MavenPublication>("Smythery") {
// // Specify which component to publish (usually "java" for a standard library)
// from(components["java"])
//
// // Optional: Customize POM metadata (required for Maven Central)
// pom {
// name = "Ornot"
// description = "A library of methods that do nothing"
// url = "https://gitea.softwaresmyth.com/numbers/Ornot"
// licenses {
// license {
// name = "The Apache License, Version 2.0"
// url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
// }
// }
// developers {
// developer {
// id = "Numbers"
// name = "Josh Chester"
// }
// }
// }
// }
}
}
repositories {
mavenCentral()
// other repositories
maven { url = uri("https://gitea.softwaresmyth.com/api/packages/numbers/maven") }
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}
tasks.test {
useJUnitPlatform()
}