diff --git a/pom.xml b/pom.xml index 47aefeb..706ed99 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,9 @@ Plugin for supporting SPDX in a Maven build. See README.md SPDX - http://spdx.dev + https://spdx.dev + UTF-8 1675930644 @@ -25,6 +26,7 @@ spdx-maven-plugin 8.0.1 + The Apache Software License, Version 2.0 @@ -32,11 +34,13 @@ repo + - https://github.com/spdx/spdx-maven-plugin - scm:git:ssh://git@github.com:spdx/spdx-maven-plugin.git - scm:git:ssh://git@github.com:spdx/spdx-maven-plugin.git + https://github.com/spdx/spdx-maven-plugin + scm:git:ssh://git@github.com:spdx/spdx-maven-plugin.git + scm:git:ssh://git@github.com:spdx/spdx-maven-plugin.git + ossrh @@ -44,15 +48,17 @@ https://oss.sonatype.org/service/local/staging/deploy/maven2/ + - - goneall - Gary O'Neall - gary@sourceauditor.com - SPDX - http://spdx.org - - + + goneall + Gary O'Neall + gary@sourceauditor.com + SPDX + https://spdx.dev + + + org.apache.maven @@ -252,6 +258,9 @@ run-its + + true + @@ -259,17 +268,17 @@ maven-invoker-plugin 1.7 - true + false ${project.build.directory}/it */pom.xml verify ${project.build.directory}/local-repo - ${project.build.directory}/it/settings.xml + src/it/settings.xml clean - test-compile + verify @@ -293,7 +302,7 @@ org.apache.maven.plugins maven-gpg-plugin - 1.6 + 3.0.1 sign-artifacts diff --git a/src/it/simple-it/pom.xml b/src/it/simple-it/pom.xml index 1155723..7431627 100644 --- a/src/it/simple-it/pom.xml +++ b/src/it/simple-it/pom.xml @@ -13,6 +13,20 @@ UTF-8 + + + commons-collections + commons-collections + 3.2.2 + + + junit + junit + 4.13.2 + test + + + @@ -21,10 +35,9 @@ @project.version@ - touch - validate + build-spdx - touch + createSPDX diff --git a/src/it/simple-it/src/main/java/simple/Simple.java b/src/it/simple-it/src/main/java/simple/Simple.java new file mode 100644 index 0000000..d542d93 --- /dev/null +++ b/src/it/simple-it/src/main/java/simple/Simple.java @@ -0,0 +1,24 @@ +/* + * Copyright 2014 Source Auditor Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package simple; + +public class Simple +{ + public static void main(String[] args) + { + System.out.println( "Hello World!"); + } +} diff --git a/src/it/simple-it/src/test/java/SimpleTest.java b/src/it/simple-it/src/test/java/SimpleTest.java new file mode 100644 index 0000000..8991c39 --- /dev/null +++ b/src/it/simple-it/src/test/java/SimpleTest.java @@ -0,0 +1,27 @@ +/* + * Copyright 2014 Source Auditor Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package simple; + +import org.junit.Test; + +public class SimpleTest +{ + @Test + public void test() + { + + } +} diff --git a/src/it/simple-it/verify.groovy b/src/it/simple-it/verify.groovy index 7b307c7..b3a51db 100644 --- a/src/it/simple-it/verify.groovy +++ b/src/it/simple-it/verify.groovy @@ -1,3 +1,3 @@ -File touchFile = new File( basedir, "target/touch.txt" ); +File spdxFile = new File( basedir, "target/site/org.spdx.it_simple-it-1.0-SNAPSHOT.spdx.json" ); -assert touchFile.isFile() +assert spdxFile.isFile()