-
Notifications
You must be signed in to change notification settings - Fork 377
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build empty jars for hamcrest-core and -library. (#236)
Existing maven builds that depend upon either `hamcrest-core-1.3.jar` or `hamcrest-library.jar` will not upgrade their version for a pom-only artifact. This change re-introduces a jar file for -core and -library, but with no real classes. This allows Maven builds to correctly detect the latest version of the jar. The transitive dependency on `hamcrest.jar` brings in the latest version of the classes that were previously in both `hamcrest-core.jar` or `hamcrest-library.jar`.
- Loading branch information
1 parent
50199a7
commit 0da9088
Showing
164 changed files
with
102 additions
and
47 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
dependencies { | ||
api project(':hamcrest') | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes 'Implementation-Title': project.name, | ||
'Implementation-Vendor': 'hamcrest.org', | ||
'Implementation-Version': version, | ||
'Automatic-Module-Name': 'org.hamcrest' | ||
} | ||
} | ||
|
||
javadoc { | ||
title = "Hamcrest Core $version API" | ||
options.showFromPackage() | ||
options.showFromPrivate() | ||
} |
9 changes: 9 additions & 0 deletions
9
hamcrest-core/src/main/java/org/hamcrest/HamcrestCoreIsDeprecated.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,9 @@ | ||
package org.hamcrest; | ||
|
||
/** | ||
* All the classes in <code>hamcrest-core.jar</code> have moved to | ||
* <code>hamcrest.jar</code>. Please use that dependency instead. | ||
*/ | ||
@Deprecated | ||
class HamcrestCoreIsDeprecated { | ||
} |
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,5 @@ | ||
/** | ||
* All classes in <code>hamcrest-core.jar</code> have been migrated to | ||
* <code>hamcrest.jar</code>. Please use that dependency instead. | ||
*/ | ||
package org.hamcrest; |
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,5 @@ | ||
Hamcrest Core | ||
============= | ||
|
||
All the classes in hamcrest-core.jar and hamcrest-library.jar has moved | ||
into hamcrest.jar. Please update your dependencies. |
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,17 @@ | ||
dependencies { | ||
api project(':hamcrest-core') | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes 'Implementation-Title': project.name, | ||
'Implementation-Vendor': 'hamcrest.org', | ||
'Implementation-Version': version, | ||
'Automatic-Module-Name': 'org.hamcrest' | ||
} | ||
} | ||
|
||
javadoc { | ||
title = "Hamcrest Library $version API" | ||
options.showFromPackage() | ||
} |
9 changes: 9 additions & 0 deletions
9
hamcrest-library/src/main/java/org/hamcrest/HamcrestLibraryIsDeprecated.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,9 @@ | ||
package org.hamcrest; | ||
|
||
/** | ||
* All the classes in <code>hamcrest-library.jar</code> have moved to | ||
* <code>hamcrest.jar</code>. Please use that dependency instead. | ||
*/ | ||
@Deprecated | ||
class HamcrestLibraryIsDeprecated { | ||
} |
5 changes: 5 additions & 0 deletions
5
hamcrest-library/src/main/java/org/hamcrest/package-info.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,5 @@ | ||
/** | ||
* All classes in <code>hamcrest-library.jar</code> have been migrated to | ||
* <code>hamcrest.jar</code>. Please use that dependency instead. | ||
*/ | ||
package org.hamcrest; |
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,5 @@ | ||
Hamcrest Library | ||
================ | ||
|
||
All the classes in hamcrest-core.jar and hamcrest-library.jar has moved | ||
into hamcrest.jar. Please update your dependencies. |
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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
version = rootProject.version | ||
apply plugin: 'osgi' | ||
|
||
sourceSets { | ||
main { | ||
java { | ||
srcDirs rootProject.file('hamcrest-core/src/main/java'), | ||
rootProject.file('hamcrest-library/src/main/java') | ||
} | ||
} | ||
test { | ||
java { | ||
srcDirs rootProject.file('hamcrest-core/src/test/java'), | ||
rootProject.file('hamcrest-library/src/test/java') | ||
} | ||
} | ||
} | ||
version = rootProject.version | ||
|
||
dependencies { | ||
testImplementation(group: 'junit', name: 'junit', version: '4.12') { | ||
transitive = false | ||
} | ||
} | ||
|
||
jar { | ||
manifest { | ||
attributes 'Implementation-Title': project.name, | ||
'Implementation-Vendor': 'hamcrest.org', | ||
'Implementation-Version': version, | ||
'Automatic-Module-Name': 'org.hamcrest' | ||
instruction 'Import-Package', '''javax.xml.namespace; resolution:=optional, | ||
javax.xml.xpath; resolution:=optional, | ||
org.w3c.dom; resolution:=optional, | ||
*''' | ||
} | ||
} | ||
|
||
javadoc.title = "Hamcrest $version API" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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