Skip to content

Commit 0bd1892

Browse files
committed
work on jreleaser
1 parent 44b1cb0 commit 0bd1892

File tree

1 file changed

+27
-21
lines changed

1 file changed

+27
-21
lines changed

build.gradle

Lines changed: 27 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -465,25 +465,6 @@ subprojects {
465465
}
466466
}
467467
}
468-
469-
/*
470-
maven { // deployment to git.key-project.org
471-
name = "GitlabPackages"
472-
url "https://git.key-project.org/api/v4/projects/35/packages/maven"
473-
credentials(HttpHeaderCredentials) {
474-
if (System.getenv("TOKEN") != null) {
475-
name = 'Private-Token'
476-
value = System.getenv("TOKEN")
477-
} else {
478-
name = 'Job-Token'
479-
value = System.getenv("CI_JOB_TOKEN")
480-
}
481-
}
482-
authentication {
483-
header(HttpHeaderAuthentication)
484-
}
485-
}
486-
*/
487468
}
488469
}
489470

@@ -533,7 +514,33 @@ task alldoc(type: Javadoc) {
533514
}
534515
}
535516

517+
536518
jreleaser {
519+
project {
520+
authors = ['KeY Developers']
521+
license = 'GPL-v2.0'
522+
links {
523+
homepage = "https://www.key-project.org/"
524+
// issueTracker = 'https://github.com/keyproject/key/issues'
525+
// scm = 'https://github.com/keyproject/key.git'
526+
}
527+
inceptionYear = '2025'
528+
}
529+
530+
release {
531+
github {
532+
repoOwner = 'keyproject'
533+
overwrite = true
534+
}
535+
}
536+
distributions {
537+
app {
538+
artifact {
539+
path = 'build/distributions/{{distributionName}}-{{projectVersion}}.zip'
540+
}
541+
}
542+
}
543+
537544
signing {
538545
active = 'ALWAYS'
539546
armored = true
@@ -544,6 +551,7 @@ jreleaser {
544551
'release-deploy' {
545552
active = 'RELEASE'
546553
url = 'https://central.sonatype.com/api/v1/publisher'
554+
//releaseRepository = false
547555
stagingRepository('target/staging-deploy')
548556
}
549557
}
@@ -603,5 +611,3 @@ def getChangedFiles() {
603611
// Return the list of touched files
604612
files
605613
}
606-
607-

0 commit comments

Comments
 (0)