Skip to content

Commit c7f704b

Browse files
committed
bump cyclonedx-gradle-plugin to 3.0.0-alpha-2 (additional refactoring)
1 parent 7ead8b1 commit c7f704b

File tree

4 files changed

+52
-50
lines changed

4 files changed

+52
-50
lines changed

build-logic/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies {
3333
implementation 'org.nosphere.apache:creadur-rat-gradle:0.8.1'
3434
implementation 'com.github.spotbugs.snom:spotbugs-gradle-plugin:6.4.2'
3535
implementation 'me.champeau.jmh:jmh-gradle-plugin:0.7.2'
36-
implementation 'org.cyclonedx:cyclonedx-gradle-plugin:3.0.0-alpha-1'
36+
implementation 'org.cyclonedx:cyclonedx-gradle-plugin:3.0.0-alpha-2'
3737
implementation "com.fasterxml.jackson:jackson-bom:2.20.0" // later version for cyclonedx
3838
implementation "org.slf4j:slf4j-api:2.0.17" // later version for cyclonedx
3939
implementation "org.apache.commons:commons-lang3:3.19.0" // later version for cyclonedx

build-logic/src/main/groovy/org.apache.groovy-published-library.gradle

Lines changed: 39 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one
3+
* or more contributor license agreements. See the NOTICE file
4+
* distributed with this work for additional information
5+
* regarding copyright ownership. The ASF licenses this file
6+
* to you under the Apache License, Version 2.0 (the
7+
* "License"); you may not use this file except in compliance
8+
* with the License. You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
import org.cyclonedx.model.ExternalReference
20+
import org.cyclonedx.model.License
21+
import org.cyclonedx.model.LicenseChoice
22+
import org.cyclonedx.model.OrganizationalContact
23+
import org.cyclonedx.model.OrganizationalEntity
24+
125
plugins {
226
id 'maven-publish'
327
id 'signing'
428
id 'org.apache.groovy-publish-validation'
529
id 'org.apache.groovy-artifactory'
30+
id 'org.cyclonedx.bom'
631
}
732

833
def componentName
@@ -844,15 +869,26 @@ String promptUser(String prompt) {
844869
response
845870
}
846871

847-
/*
872+
def oe = new OrganizationalEntity(name: 'Apache Software Foundation',
873+
urls: ['https://www.apache.org/', 'https://security.apache.org/'])
874+
oe.addContact(new OrganizationalContact(name: 'Apache Groovy Development Team',
875+
email: 'dev@groovy.apache.org'))
876+
def lc = new LicenseChoice()
877+
lc.addLicense(new License(name: 'Apache-2.0',
878+
url: 'https://www.apache.org/licenses/LICENSE-2.0.txt'))
879+
def er = new ExternalReference(url: 'https://groovy.apache.org/', type: ExternalReference.Type.WEBSITE)
880+
848881
cyclonedxDirectBom {
849882
includeConfigs = ['runtimeClasspath']
850-
skipConfigs = ['compileClasspath', 'detached.*', 'test.*']
883+
skipConfigs = ['compileClasspath', 'detached.*', 'test.*']
851884

852885
includeLicenseText = false
853886
includeMetadataResolution = false
854887

888+
organizationalEntity = oe
889+
licenseChoice = lc
890+
externalReferences = [er]
891+
855892
xmlOutput.unsetConvention()
856893
jsonOutput.set(file("build/reports/cyclonedx/${project.name}.json"))
857894
}
858-
*/

build.gradle

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,6 @@
1616
* specific language governing permissions and limitations
1717
* under the License.
1818
*/
19-
import org.cyclonedx.model.ExternalReference
20-
import org.cyclonedx.model.License
21-
import org.cyclonedx.model.LicenseChoice
22-
import org.cyclonedx.model.OrganizationalContact
23-
import org.cyclonedx.model.OrganizationalEntity
24-
2519
plugins {
2620
id 'com.github.ben-manes.versions' version '0.53.0'
2721
id 'io.github.goooler.osgi' version '0.8.6'
@@ -30,7 +24,6 @@ plugins {
3024
id 'org.apache.groovy-core'
3125
id 'java-test-fixtures'
3226
id 'org.apache.groovy-jacoco-aggregation'
33-
id 'org.cyclonedx.bom' version '3.0.0-alpha-2'
3427
}
3528

3629
base {
@@ -283,30 +276,3 @@ artifacts {
283276
gparsRuntimeElements file: jar.archiveFile.get().asFile, type: 'jar'
284277
loggingRuntimeElements file: jar.archiveFile.get().asFile, type: 'jar'
285278
}
286-
287-
// below here really belongs in org.apache.groovy-published-library.gradle but currently gives errors
288-
def oe = new OrganizationalEntity(name: 'Apache Software Foundation',
289-
urls: ['https://www.apache.org/', 'https://security.apache.org/'])
290-
oe.addContact(new OrganizationalContact(name: 'Apache Groovy Development Team',
291-
email: 'dev@groovy.apache.org'))
292-
def lc = new LicenseChoice()
293-
lc.addLicense(new License(name: 'Apache-2.0',
294-
url: 'https://www.apache.org/licenses/LICENSE-2.0.txt'))
295-
def er = new ExternalReference(url: 'https://groovy.apache.org/', type: ExternalReference.Type.WEBSITE)
296-
297-
allprojects { p ->
298-
tasks.cyclonedxDirectBom {
299-
includeConfigs = ['runtimeClasspath']
300-
skipConfigs = ['compileClasspath', 'detached.*', 'test.*']
301-
302-
includeLicenseText = false
303-
includeMetadataResolution = false
304-
305-
organizationalEntity = oe
306-
licenseChoice = lc
307-
externalReferences = [er]
308-
309-
xmlOutput.unsetConvention()
310-
jsonOutput.set(file("build/reports/cyclonedx/${p.name}.json"))
311-
}
312-
}

gradle/verification-metadata.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@
315315
<sha512 value="cbf03668b3ae43c163ab74acec3081c0c714098387ab432c4468aec6b25d0b3a5a3c9a9b7be94e7801c56f86544294d38f8afa81518c9e824b433d2aede76059" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
316316
</artifact>
317317
</component>
318-
<component group="com.ethlo.time" name="itu" version="1.10.3">
319-
<artifact name="itu-1.10.3.jar">
318+
<component group="com.ethlo.time" name="itu" version="1.14.0">
319+
<artifact name="itu-1.14.0.jar">
320320
<pgp value="B18679A17A21DE79FF9DE8B0636D10E7975B6E6F"/>
321-
<sha512 value="c44852b434ccb29830b2e6b4857fb26d4a726daf6bace94bf4ae5412efd819d498f83cef71ae97963a318c6ee1b3f61490fa0374fd20fc423fd1aabacc64f4c3" origin="Generated by Gradle"/>
321+
<sha512 value="aa69a6af3a7123eb41425bbaf6834e16dc3323172709e2338b8a21b970fd21333d996515f42da4aa0225251e30542ad7d9c8332bdf7d62ed96b42fadc8a1520d" origin="Generated by Gradle"/>
322322
</artifact>
323323
</component>
324324
<component group="com.fasterxml.jackson.core" name="jackson-annotations" version="2.20">
@@ -627,10 +627,10 @@
627627
<sha512 value="b6827d8de471682fd11744080663aea77612a03774e2ebcc3357c7c493d5df50d4ec9c8d52c4fcc928bdfdd75b62b40d3c60f184da8a7b8aba44c92afecee7a5" origin="Generated by Gradle" reason="Artifact is not signed"/>
628628
</artifact>
629629
</component>
630-
<component group="com.networknt" name="json-schema-validator" version="1.5.6">
631-
<artifact name="json-schema-validator-1.5.6.jar">
630+
<component group="com.networknt" name="json-schema-validator" version="1.5.9">
631+
<artifact name="json-schema-validator-1.5.9.jar">
632632
<pgp value="AEB1E1AEC035C66FA39589D13EFC46EE83C40224"/>
633-
<sha512 value="a9bfd40b46ea8ab74977832338103fb0df45f75647d3dca894a30097bc1841b392209eef0f1c42780f3c9f4c81624a63652055eb7fac498f3bac6dc3f5045d0d" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
633+
<sha512 value="5ba210c135717a6ed043e0889d96f6381b3668f9e2a011bd0def8138ad327813f792259858ae5ed192cb8ec0645308113769aa8ebee903db1ccd82e98cb3009d" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
634634
</artifact>
635635
</component>
636636
<component group="com.puppycrawl.tools" name="checkstyle" version="11.0.1">
@@ -1530,14 +1530,14 @@
15301530
<pgp value="851264C36365D4FF9427625F38362FD5CFA2668B"/>
15311531
</artifact>
15321532
</component>
1533-
<component group="org.cyclonedx" name="cyclonedx-core-java" version="10.2.1">
1534-
<artifact name="cyclonedx-core-java-10.2.1.jar">
1535-
<sha512 value="a43be061a75cb1f3a5b175fbd41437b4c2360050993bcb3c85acc52168b9e96c41f8436f178c0a5156db09b80fa0dfd84db60f3d575bb3679bcac7c3c8a83375" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
1533+
<component group="org.cyclonedx" name="cyclonedx-core-java" version="11.0.0">
1534+
<artifact name="cyclonedx-core-java-11.0.0.jar">
1535+
<sha512 value="20d3c3b839fd2a5597665ee6e48f0f6bbd32168f275b851551230437aa25d80e22d6e7da760f05ebd17ddc92cec5a4c2c45e3280631da67478d77e16b612f00e" origin="Generated by Gradle" reason="A key couldn't be downloaded"/>
15361536
</artifact>
15371537
</component>
1538-
<component group="org.cyclonedx" name="cyclonedx-gradle-plugin" version="3.0.0-alpha-1">
1539-
<artifact name="cyclonedx-gradle-plugin-3.0.0-alpha-1.jar">
1540-
<sha512 value="724bccf1749a9ae38e969a3a598ea06ca62d56488f46d0750e5598c6e169469ff5f4adf29efe4eab2a43937817b117bbff5d93238d285ef5b96eb2001017631d" origin="Generated by Gradle" reason="Artifact is not signed"/>
1538+
<component group="org.cyclonedx" name="cyclonedx-gradle-plugin" version="3.0.0-alpha-2">
1539+
<artifact name="cyclonedx-gradle-plugin-3.0.0-alpha-2.jar">
1540+
<sha512 value="539cc070289c606e214b4af3596ed2cf90481aa9bdb7fe72b727cee67dbdb359eaa92a5096e602f4eaabef2e617c42c8009acfe28ee9152a20d7906213479cc4" origin="Generated by Gradle" reason="Artifact is not signed"/>
15411541
</artifact>
15421542
</component>
15431543
<component group="org.dom4j" name="dom4j" version="2.2.0">

0 commit comments

Comments
 (0)