-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
don't write null values to pom (#89)
* add integration tests with minimal set of pom values * move setting test values to fixture setup * don't write null values to pom
- Loading branch information
1 parent
eb962d7
commit feaaa27
Showing
6 changed files
with
100 additions
and
21 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/integrationTest/fixtures/minimal_pom_project/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
plugins { | ||
id "java" | ||
id "com.vanniktech.maven.publish" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
apply from: "maven-publish.gradle" |
15 changes: 15 additions & 0 deletions
15
src/integrationTest/fixtures/minimal_pom_project/expected/test-artifact.pom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.example</groupId> | ||
<artifactId>test-artifact</artifactId> | ||
<version>1.0.0</version> | ||
<licenses> | ||
<license /> | ||
</licenses> | ||
<developers> | ||
<developer /> | ||
</developers> | ||
<scm /> | ||
</project> |
3 changes: 3 additions & 0 deletions
3
src/integrationTest/fixtures/minimal_pom_project/gradle.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
signing.keyId=B89C4055 | ||
signing.password=test | ||
signing.secretKeyRingFile=test-secring.gpg |
15 changes: 15 additions & 0 deletions
15
...xtures/minimal_pom_project/src/main/java/com/vanniktech/maven/publish/test/TestClass.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.vanniktech.maven.publish.test; | ||
|
||
/** | ||
* Just a test class with Javadoc. | ||
*/ | ||
public class TestClass { | ||
/** | ||
* Main method which does something. | ||
* | ||
* @param args Command-line arguments passed to the program. | ||
*/ | ||
public static void main(String[] args) { | ||
System.out.println("Hello World!"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters