diff --git a/IDLReader/build.gradle b/IDLReader/build.gradle index cb02c7f9..82ddc151 100644 --- a/IDLReader/build.gradle +++ b/IDLReader/build.gradle @@ -7,74 +7,74 @@ dependencies { testImplementation "junit:junit:$project.jUnitVersion" } -//task fromClasses(type: Jar) { -// from(sourceSets.main.output) { -// } -//} -// -//task javadocJar(type: Jar) { -// archiveClassifier.set("javadoc") -// from javadoc -//} -// -//task sourcesJar(type: Jar) { -// archiveClassifier.set("sources") -// from sourceSets.main.allSource -//} -// -//javadoc { -// options.encoding = 'UTF-8' -// options.addStringOption('Xdoclint:none', '-quiet') -//} -// -//publishing { -// publications { -// maven(MavenPublication) { -// version project.jParserVersion + project.jParserType -// project.version = project.jParserVersion + project.jParserType -// artifactId module_name -// artifact fromClasses -// artifact javadocJar -// artifact sourcesJar -// -// pom { -// name = "jParser" -// description = "Java code parser" -// url = "http://github.com/xpenatan/jParser" -// developers { -// developer { -// id = "Xpe" -// name = "Natan" -// } -// } -// scm { -// connection = "scm:git:git://github.com/xpenatan/jParser.git" -// developerConnection = "scm:git:ssh://github.com/xpenatan/jParser.git" -// url = "http://github.com/xpenatan/jParser/tree/master" -// } -// licenses { -// license { -// name = "The Apache License, Version 2.0" -// url = "https://www.apache.org/licenses/LICENSE-2.0.txt" -// } -// } -// withXml { -// def dependenciesNode = asNode().appendNode('dependencies') -// configurations.implementation.allDependencies.each { -// def dependencyNode = dependenciesNode.appendNode('dependency') -// dependencyNode.appendNode('groupId', it.group) -// dependencyNode.appendNode('artifactId', it.name) -// dependencyNode.appendNode('version', it.version) -// } -// } -// } -// } -// } -//} -// -//signing { -// def signingKey = System.getenv("signingKey") -// def signingPassword = System.getenv("signingPassword") -// useInMemoryPgpKeys(signingKey, signingPassword) -// sign publishing.publications.maven -//} \ No newline at end of file +task fromClasses(type: Jar) { + from(sourceSets.main.output) { + } +} + +task javadocJar(type: Jar) { + archiveClassifier.set("javadoc") + from javadoc +} + +task sourcesJar(type: Jar) { + archiveClassifier.set("sources") + from sourceSets.main.allSource +} + +javadoc { + options.encoding = 'UTF-8' + options.addStringOption('Xdoclint:none', '-quiet') +} + +publishing { + publications { + maven(MavenPublication) { + version project.jParserVersion + project.jParserType + project.version = project.jParserVersion + project.jParserType + artifactId module_name + artifact fromClasses + artifact javadocJar + artifact sourcesJar + + pom { + name = "jParser" + description = "Java code parser" + url = "http://github.com/xpenatan/jParser" + developers { + developer { + id = "Xpe" + name = "Natan" + } + } + scm { + connection = "scm:git:git://github.com/xpenatan/jParser.git" + developerConnection = "scm:git:ssh://github.com/xpenatan/jParser.git" + url = "http://github.com/xpenatan/jParser/tree/master" + } + licenses { + license { + name = "The Apache License, Version 2.0" + url = "https://www.apache.org/licenses/LICENSE-2.0.txt" + } + } + withXml { + def dependenciesNode = asNode().appendNode('dependencies') + configurations.implementation.allDependencies.each { + def dependencyNode = dependenciesNode.appendNode('dependency') + dependencyNode.appendNode('groupId', it.group) + dependencyNode.appendNode('artifactId', it.name) + dependencyNode.appendNode('version', it.version) + } + } + } + } + } +} + +signing { + def signingKey = System.getenv("signingKey") + def signingPassword = System.getenv("signingPassword") + useInMemoryPgpKeys(signingKey, signingPassword) + sign publishing.publications.maven +} \ No newline at end of file