Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Produce identical plugin JAR regardless of OS #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}

/**
* Create 'reproducible archives' (JARs will be identical regardless of the platform they are created)
* https://docs.gradle.org/3.4/userguide/working_with_files.html#sec:reproducible_archives
*/
tasks.withType(AbstractArchiveTask) {
preserveFileTimestamps = false
reproducibleFileOrder = true
}

configurations {
manifoldAll
manifoldEp
Expand Down
1 change: 1 addition & 0 deletions src/test/java/manifold/ij/ext/ExtScopeResolverTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public void testComplicatedGenericsResolve()
{
myFixture.configureByFile( "ext/highlight/MyErrors.java" );
List<HighlightInfo> highlightInfos = myFixture.doHighlighting( HighlightSeverity.ERROR );
highlightInfos.forEach( hi -> System.out.println(hi.toString()) ); //should be empty, but sometimes fails
assertEquals( 0, highlightInfos.size() );
}

Expand Down