/* * This file was generated by the Gradle 'init' task. * * This project uses @Incubating APIs which are subject to change. */ plugins { id 'java-library' id 'maven-publish' id 'signing' } repositories { mavenLocal() maven { url = uri('https://repo.spring.io/snapshot') } maven { url = uri('https://repo.spring.io/milestone') } maven { url = uri('https://maven.aliyun.com/repository/public') } maven { url = uri('https://svn.youshengyun.com:9900/nexus/repository/maven-public/') } maven { url = uri('https://repo.maven.apache.org/maven2/') } maven { url = uri('https://build.shibboleth.net/maven/releases/') } maven { url = uri('https://build.shibboleth.net/maven/snapshots/') } } group = 'net.risesoft' version = 'v9.7.0-SNAPSHOT' java.sourceCompatibility = JavaVersion.VERSION_21 java { withJavadocJar() withSourcesJar() } compileJava { options.compilerArgs << '-parameters' } publishing { publications { maven(MavenPublication) { from(components.java) } } repositories { maven { name = 'y9-internet-repo' url = 'https://svn.youshengyun.com:9900/nexus/repository/maven-snapshots/' credentials { username = findProperty("mavenUsername") ?: "" password = findProject("mavenPassword") ?: "" } // name = 'myRepo' // url = layout.buildDirectory.dir("repo") } } } signing { useGpgCmd() sign publishing.publications.maven } tasks.withType(JavaCompile) { options.encoding = 'UTF-8' } tasks.withType(Javadoc) { options.encoding = 'UTF-8' failOnError = false options.addStringOption('Xdoclint:none', '-quiet') // 禁用所有文档检查 } tasks.withType(GenerateModuleMetadata) { enabled = false }