1- plugins {
1+ plugins {
22 // Support for IntelliJ IDEA
33 // https://docs.gradle.org/current/userguide/idea_plugin.html
44 id(" idea" )
@@ -17,6 +17,8 @@ plugins {
1717
1818 // Plugin for publishing via the new Nexus API
1919 id " io.github.gradle-nexus.publish-plugin" version " 2.0.0"
20+
21+ id " signing"
2022}
2123
2224
@@ -36,7 +38,7 @@ static def getDate() {
3638def build = System . env. BUILD_NUMBER == null ? " -dev" : " -${ System.env.BUILD_NUMBER} "
3739
3840group = " org.key-project"
39- version = " 2.13 .0$build "
41+ version = " 3.0 .0$build "
4042
4143subprojects {
4244 apply plugin : " java"
@@ -348,14 +350,24 @@ subprojects {
348350 }
349351 }
350352 }
351-
352353 signing {
353- useGpgCmd() // works better than the Java implementation, which requires PGP keyrings.
354- sign publishing. publications. mavenJava
354+ // sign publishing.publications.mavenJava
355355 }
356356 }
357357}
358358
359+ signing {
360+ // does not work
361+ if (System . getenv(" GPG_PRIVATE_KEY" ) == null ) {
362+ useGpgCmd() // works better than the Java implementation, which requires PGP keyrings.
363+ } else {
364+ useInMemoryPgpKeys(
365+ System . getenv(" SIGNING_KEY_ID" ),
366+ System . getenv(" GPG_PRIVATE_KEY" ),
367+ System . getenv(" GPG_PASSPHRASE" )
368+ )
369+ }
370+ }
359371
360372nexusPublishing {
361373 repositories {
@@ -405,12 +417,10 @@ tasks.register('alldoc', Javadoc){
405417 classpath = files(projects. collect { it. sourceSets. main. compileClasspath })
406418 destinationDir = layout. buildDirectory. dir(" docs/javadoc" ). getOrNull(). getAsFile()
407419
408- if (JavaVersion . current(). isJava9Compatible()) {
409- options. addBooleanOption(' html5' , true )
410- }
411420
412421 configure(options) {
413- // showFromPrivate()
422+ showFromPrivate()
423+ options. addBooleanOption(' html5' , true )
414424 encoding = ' UTF-8'
415425 addBooleanOption ' Xdoclint:none' , true
416426 // overview = new File( projectDir, 'src/javadoc/package.html' )
@@ -420,7 +430,45 @@ tasks.register('alldoc', Javadoc){
420430 bottom = " Copyright © 2003-2026 <a href=\" http://key-project.org\" >The KeY-Project</a>."
421431 use = true
422432 links + = " https://docs.oracle.com/en/java/javase/21/docs/api/"
423- links + = " https://www.antlr.org/api/Java/"
433+ links + = " https://www.javadoc.io/doc/org.slf4j/slf4j-api/2.0.17/"
434+ links + = " https://www.javadoc.io/doc/org.antlr/antlr4-runtime/4.13.2/"
435+ links + = " https://www.javadoc.io/doc/ch.qos.logback/logback-classic/1.5.32/"
436+ links + = " https://www.javadoc.io/doc/com.formdev/flatlaf/3.7/"
437+ links + = " https://www.javadoc.io/doc/com.miglayout/miglayout-swing/11.4.3/"
438+ links + = " https://www.javadoc.io/doc/com.squareup/javapoet/1.13.0/"
439+ // links +="https://www.javadoc.io/doc/de.unruh/scala-isabelle_2.13/0.4.5/"
440+ links + = " https://www.javadoc.io/doc/info.picocli/picocli/4.7.7/"
441+ links + = " https://www.javadoc.io/doc/org.antlr/ST4/4.3.4/"
442+ links + = " https://www.javadoc.io/doc/org.antlr/antlr4-runtime/4.13.2/"
443+ links + = " https://www.javadoc.io/doc/org.jspecify/jspecify/1.0.0/"
444+ links + = " https://www.javadoc.io/doc/org.slf4j/slf4j-api/2.0.17/"
445+
446+ linkSource()
447+ author()
448+ version()
449+
450+ group(" key.core.infflow" , " de.uka.ilkd.key.informationflow" )
451+ group(" key.core" , " de.uka.ilkd.key" )
452+ group(" key.util" , " org.key_project.util" )
453+ group(" key.ui" , " org.key_project.util.java" ,
454+ " de.uka.ilkd.key.core" , " de.uka.ilkd.key.gui" ,
455+ " de.uka.ilkd.key.proof" , " de.uka.ilkd.key.ui" ," de.uka.ilkd.key.util" )
456+ group(" key.core.wd" , " de.uka.ilkd.key.wd" )
457+ group(" key.core.testgen" , " de.uka.ilkd.key.testgen" )
458+ group(" key.ncore" , " org.key_project.logic" )
459+ group(" key.ncore.calculus" , " org.key_project.prover" )
460+
461+ /*
462+ group("keyext.isabelletranslation", "org.key_project.isabelletranslation")
463+ group("keyext.proofmanagement", "org.key_project.proofmanagement")
464+ group("keyext.slicing", "org.key_project.slicing")
465+ group("keyext.ui.testgen", "de.uka.ilkd.key.gui.testgen")
466+ group("keyext.exploration","org.key_project.exploration")
467+ group("keyext.caching", "de.uka.ilkd.key.gui.plugins.caching")
468+ group("key.core.symbolic_execution",// "de.uka.ilkd.key.proof",
469+ "de.uka.ilkd.key.rule.label", "de.uka.ilkd.key.strategy",
470+ "de.uka.ilkd.key.symbolic_execution")
471+ group("key.core.proof_references", "de.uka.ilkd.key.proof_references")*/
424472 }
425473}
426474
0 commit comments