@@ -291,10 +291,16 @@ subprojects { subproj ->
291291 }
292292
293293 if (subproj. name in mavenizedProjects) {
294- apply plugin : ' maven'
295- apply plugin : ' signing'
296294
297- if (subproj. name in platformProjects) {
295+ apply from : " $rootDir /gradle/maven.gradle"
296+
297+ subproj. ext. baseline = null
298+
299+ if (subproj. name in jupiterProjects) {
300+ subproj. group = jupiterGroup
301+ subproj. baseline = jupiterBaseline
302+ }
303+ else if (subproj. name in platformProjects) {
298304 subproj. group = platformGroup
299305 subproj. version = platformVersion
300306 subproj. baseline = platformBaseline
@@ -371,102 +377,7 @@ subprojects { subproj ->
371377 }
372378 }
373379
374- def isSnapshot = project. version. contains(' SNAPSHOT' )
375- def isContinuousIntegrationEnvironment = Boolean . parseBoolean(System . getenv(' CI' ))
376- def isJitPackEnvironment = Boolean . parseBoolean(System . getenv(' JITPACK' ))
377- def signArtifacts = ! (isSnapshot || isContinuousIntegrationEnvironment || isJitPackEnvironment)
378-
379- afterEvaluate {
380- if (signArtifacts && uploadArchives. enabled) {
381- signing {
382- sign configurations. archives
383- }
384- }
385- }
386-
387- uploadArchives {
388-
389- dependsOn check
390-
391- repositories {
392- mavenDeployer {
393-
394- if (signArtifacts) {
395- beforeDeployment { MavenDeployment deployment -> signing. signPom(deployment) }
396- }
397-
398- def ossrhUsername = rootProject. hasProperty(' ossrhUsername' ) ? rootProject. ossrhUsername : ' '
399- def ossrhPassword = rootProject. hasProperty(' ossrhPassword' ) ? rootProject. ossrhPassword : ' '
400-
401- repository(url : " https://oss.sonatype.org/service/local/staging/deploy/maven2/" ) {
402- authentication(userName : ossrhUsername, password : ossrhPassword)
403- }
404-
405- snapshotRepository(url : " https://oss.sonatype.org/content/repositories/snapshots/" ) {
406- authentication(userName : ossrhUsername, password : ossrhPassword)
407- }
408-
409- def projectLicense = licenseOf(project)
410-
411- pom. project {
412- name " ${ project.group} :${ project.name} "
413- packaging ' jar'
414- description " Module \" ${ project.name} \" of JUnit 5."
415- url ' http://junit.org/junit5/'
416-
417- scm {
418- connection ' scm:git:git://github.com/junit-team/junit5.git'
419- developerConnection ' scm:git:git://github.com/junit-team/junit5.git'
420- url ' https://github.com/junit-team/junit5'
421- }
422-
423- licenses {
424- license {
425- name projectLicense[' name' ]
426- url projectLicense[' url' ]
427- }
428- }
429380
430- developers {
431- developer {
432- id ' bechte'
433- name ' Stefan Bechtold'
434- 435- }
436- developer {
437- id ' jlink'
438- name ' Johannes Link'
439- 440- }
441- developer {
442- id ' marcphilipp'
443- name ' Marc Philipp'
444- 445- }
446- developer {
447- id ' mmerdes'
448- name ' Matthias Merdes'
449- 450- }
451- developer {
452- id ' sbrannen'
453- name ' Sam Brannen'
454- 455- }
456- developer {
457- id ' sormuras'
458- name ' Christian Stein'
459- 460- }
461- }
462- }
463-
464- pom. whenConfigured { p ->
465- p. dependencies = p. dependencies. findAll { dep -> dep. scope != ' test' }
466- }
467- }
468- }
469- }
470381 } else {
471382 jar. enabled = false
472383 javadoc. enabled = false
0 commit comments