|
@@ -14,6 +14,8 @@ buildscript {
|
|
|
maven { url 'https://maven.aliyun.com/repository/google' }
|
|
|
maven { url 'https://repo.spring.io/release' }
|
|
|
maven { url 'https://repo.spring.io/milestone' }
|
|
|
+ maven { url 'https://repo.spring.io/snapshot' }
|
|
|
+ mavenCentral()
|
|
|
}
|
|
|
|
|
|
dependencies {
|
|
@@ -32,7 +34,7 @@ allprojects {
|
|
|
subprojects {
|
|
|
apply plugin: 'java-library'
|
|
|
apply plugin: 'maven-publish'
|
|
|
-// apply plugin: 'signing'
|
|
|
+ apply plugin: 'signing'
|
|
|
apply plugin: "io.spring.dependency-management"
|
|
|
|
|
|
tasks.withType(JavaCompile) {
|
|
@@ -128,40 +130,54 @@ subprojects {
|
|
|
from sourceSets.main.allSource
|
|
|
}
|
|
|
|
|
|
-// javadoc {
|
|
|
-// options {
|
|
|
-// encoding "UTF-8"
|
|
|
-// charSet 'UTF-8'
|
|
|
-// author true
|
|
|
-// version true
|
|
|
-// failOnError false
|
|
|
-// links "http://docs.oracle.com/javase/7/docs/api"
|
|
|
-// }
|
|
|
-// }
|
|
|
-//
|
|
|
-// task javadocJar(type: Jar) {
|
|
|
-// archiveClassifier = 'javadoc'
|
|
|
-// from javadoc
|
|
|
-// }
|
|
|
+ javadoc {
|
|
|
+ options {
|
|
|
+ encoding "UTF-8"
|
|
|
+ charSet 'UTF-8'
|
|
|
+ author true
|
|
|
+ version true
|
|
|
+ failOnError false
|
|
|
+ links "http://docs.oracle.com/javase/17/docs/api"
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ task javadocJar(type: Jar) {
|
|
|
+ archiveClassifier = 'javadoc'
|
|
|
+ from javadoc
|
|
|
+ }
|
|
|
|
|
|
-// tasks.whenTaskAdded { task ->
|
|
|
-// if (task.name.contains('signMavenJavaPublication')) {
|
|
|
-// task.enabled = new File(project.property('signing.secretKeyRingFile') as String).isFile()
|
|
|
-// }
|
|
|
-// }
|
|
|
+ tasks.whenTaskAdded { task ->
|
|
|
+ if (task.name.contains('signMavenJavaPublication')) {
|
|
|
+ task.enabled = new File(project.property('signing.secretKeyRingFile') as String).isFile()
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
publishing {
|
|
|
repositories {
|
|
|
+// maven {
|
|
|
+// def userName = System.getProperty("un")
|
|
|
+// def passWord = System.getProperty("ps")
|
|
|
+// def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
|
|
+// def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
|
|
|
+// url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
|
|
+//
|
|
|
+// credentials {
|
|
|
+// username userName
|
|
|
+// password passWord
|
|
|
+// }
|
|
|
+// }
|
|
|
maven {
|
|
|
- def userName = System.getProperty("un")
|
|
|
- def passWord = System.getProperty("ps")
|
|
|
- def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
|
|
|
- def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
|
|
|
- url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
|
|
|
-
|
|
|
- credentials {
|
|
|
- username userName
|
|
|
- password passWord
|
|
|
+ name = "Gitea"
|
|
|
+ url = uri("http://gitea.aizuda.com/api/packages/aizuda/maven")
|
|
|
+ allowInsecureProtocol = true
|
|
|
+
|
|
|
+ credentials(HttpHeaderCredentials) {
|
|
|
+ name = "Authorization"
|
|
|
+ value = "token 7d725429ef7ac5c9fa9a6779f70032d6e42d7f34"
|
|
|
+ }
|
|
|
+
|
|
|
+ authentication {
|
|
|
+ header(HttpHeaderAuthentication)
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -170,19 +186,19 @@ subprojects {
|
|
|
mavenJava(MavenPublication) {
|
|
|
from components.java
|
|
|
|
|
|
- artifact sourcesJar
|
|
|
-// artifact javadocJar
|
|
|
+// artifact sourcesJar
|
|
|
+ artifact javadocJar
|
|
|
|
|
|
pom {
|
|
|
- name = 'aizuda-components'
|
|
|
+ name = 'aizuda-framework'
|
|
|
packaging 'jar'
|
|
|
- description = 'aizuda components.'
|
|
|
- url = 'https://github.com/aizuda/aizuda-components'
|
|
|
+ description = 'aizuda framework.'
|
|
|
+ url = 'https://gitee.com/aizuda/aizuda-framework'
|
|
|
|
|
|
scm {
|
|
|
connection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
|
|
|
developerConnection = 'scm:git@github.com:Codearte/gradle-nexus-staging-plugin.git'
|
|
|
- url = 'https://github.com/aizuda/aizuda-components'
|
|
|
+ url = 'https://gitee.com/aizuda/aizuda-framework'
|
|
|
}
|
|
|
|
|
|
licenses {
|
|
@@ -216,8 +232,8 @@ subprojects {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// signing {
|
|
|
-// sign publishing.publications.mavenJava
|
|
|
-// }
|
|
|
+ signing {
|
|
|
+ sign publishing.publications.mavenJava
|
|
|
+ }
|
|
|
}
|
|
|
}
|