mirror of
https://github.com/gbevin/urlencoder.git
synced 2025-04-25 07:17:11 -07:00
First commit
This commit is contained in:
commit
2d7f91cbd7
12 changed files with 913 additions and 0 deletions
76
lib/build.gradle.kts
Normal file
76
lib/build.gradle.kts
Normal file
|
@ -0,0 +1,76 @@
|
|||
plugins {
|
||||
`java-library`
|
||||
`maven-publish`
|
||||
signing
|
||||
}
|
||||
|
||||
base {
|
||||
archivesName.set("urlencoder")
|
||||
version = 0.9
|
||||
}
|
||||
java {
|
||||
withJavadocJar()
|
||||
withSourcesJar()
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
testImplementation("org.junit.jupiter:junit-jupiter:5.9.0")
|
||||
}
|
||||
|
||||
tasks.named<Test>("test") {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
create<MavenPublication>("mavenJava") {
|
||||
artifactId = "urlencoder"
|
||||
from(components["java"])
|
||||
pom {
|
||||
name.set("URL Encoder")
|
||||
description.set("A simple library to encode/decode URL parameters.")
|
||||
url.set("https://github.com/gbevin/urlencoder")
|
||||
licenses {
|
||||
license {
|
||||
name.set("The Apache License, Version 2.0")
|
||||
url.set("http://www.apache.org/licenses/LICENSE-2.0.txt")
|
||||
}
|
||||
}
|
||||
developers {
|
||||
developer {
|
||||
id.set("gbevin")
|
||||
name.set("Geert Bevin")
|
||||
email.set("gbevin@uwyn.com")
|
||||
}
|
||||
}
|
||||
scm {
|
||||
connection.set("scm:git:https://github.com/gbevin/urlencoder.git")
|
||||
developerConnection.set("scm:git:git@github.com:gbevin/urlencoder.git")
|
||||
url.set("https://github.com/gbevin/urlencoder")
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
credentials {
|
||||
username = project.properties["ossrhUsername"].toString()
|
||||
password = project.properties["ossrhPassword"].toString()
|
||||
}
|
||||
val releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
|
||||
val snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
|
||||
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
signing {
|
||||
sign(publishing.publications["mavenJava"])
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue