Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Commit 02c6bc6

Browse files
authored
Merge pull request #521 from dhalperi/archetype-notice
Add NOTICE to archetypes and enforce they match the root NOTICE
2 parents 44d1a17 + 2cc474e commit 02c6bc6

6 files changed

Lines changed: 34 additions & 1 deletion

File tree

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,8 @@ install:
4747
- travis_retry mvn install clean -U -DskipTests=true
4848

4949
script:
50-
- travis_retry mvn install -U
50+
# Verify that the project can be built and installed.
51+
- mvn install
52+
# Verify that starter and examples archetypes have the correct version of the NOTICE file.
53+
- diff -q NOTICE maven-archetypes/starter/src/main/resources/archetype-resources/NOTICE
54+
- diff -q NOTICE maven-archetypes/examples/src/main/resources/archetype-resources/NOTICE

maven-archetypes/examples/src/main/resources/META-INF/maven/archetype-metadata.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,12 @@
4040
<include>**/*.java</include>
4141
</includes>
4242
</fileSet>
43+
44+
<fileSet filtered="false" packaged="false" encoding="UTF-8">
45+
<directory></directory>
46+
<includes>
47+
<include>NOTICE</include>
48+
</includes>
49+
</fileSet>
4350
</fileSets>
4451
</archetype-descriptor>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Google Cloud Dataflow SDK for Java
2+
Copyright 2017, Google Inc.
3+
4+
This product includes software developed at
5+
The Apache Software Foundation (http://www.apache.org/).

maven-archetypes/starter/src/main/resources/META-INF/maven/archetype-metadata.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,12 @@
3232
<include>**/*.java</include>
3333
</includes>
3434
</fileSet>
35+
36+
<fileSet filtered="false" packaged="false" encoding="UTF-8">
37+
<directory></directory>
38+
<includes>
39+
<include>NOTICE</include>
40+
</includes>
41+
</fileSet>
3542
</fileSets>
3643
</archetype-descriptor>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Google Cloud Dataflow SDK for Java
2+
Copyright 2017, Google Inc.
3+
4+
This product includes software developed at
5+
The Apache Software Foundation (http://www.apache.org/).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Google Cloud Dataflow SDK for Java
2+
Copyright 2017, Google Inc.
3+
4+
This product includes software developed at
5+
The Apache Software Foundation (http://www.apache.org/).

0 commit comments

Comments
 (0)