Skip to content

Commit

Permalink
release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyuns committed Sep 20, 2022
1 parent 4dc359e commit d9ea53e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
36 changes: 36 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id("java-library")
id("maven-publish")
id("signing")
}

group = "io.github.xtyuns"
Expand All @@ -19,6 +20,21 @@ tasks.getByName<Test>("test") {
useJUnitPlatform()
}


java {
withSourcesJar()
withJavadocJar()
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}

tasks.withType<Javadoc> {
options.encoding = System.getProperty("file.encoding") ?: "UTF-8"
if (JavaVersion.current().isJava9Compatible) {
(options as StandardJavadocDocletOptions).addBooleanOption("html5", true)
}
}

publishing {
repositories {
mavenLocal()
Expand Down Expand Up @@ -47,6 +63,22 @@ publishing {
name.set(project.name)
description.set("Tencent Tiny Encryption algorithm library")
url.set("https://github.com/xtyuns/TTEA4j")

licenses {
license {
name.set("Apache License, Version 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0")
}
}

developers {
developer {
id.set("xtyuns")
name.set("xtyuns")
email.set("[email protected]")
}
}

scm {
connection.set("scm:git:git://github.com/xtyuns/TTEA4j.git")
developerConnection.set("scm:git:ssh://github.com/xtyuns/TTEA4j.git")
Expand All @@ -65,3 +97,7 @@ publishing {
}
}
}

signing {
sign(publishing.publications["-${project.name}-"])
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.jvmargs=-Dfile.encoding=UTF-8

0 comments on commit d9ea53e

Please sign in to comment.