Skip to content

Commit

Permalink
Gradle cache (#155)
Browse files Browse the repository at this point in the history
* Use https for repo.gradle.org

* Mark gradle task's classpath as such

* Ignore IntelliJ files in rat check

* Use gradle 3.2

Co-authored-by: Markus Maier <[email protected]>
Co-authored-by: Uwe Schindler <[email protected]>
  • Loading branch information
3 people authored Apr 6, 2020
1 parent 600388b commit f8c8fa5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@
<exclude name="README.md"/>
<exclude name="**/jdk-deprecated-*.txt"/>
<exclude name="**/jdk-internal-*.txt"/>
<exclude name="**/*.iml"/>
</fileset>
</rat:report>
<!-- now print the output, for review -->
Expand Down
3 changes: 2 additions & 1 deletion ivy.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
-->
<!DOCTYPE ivy-module [
<!ENTITY maven.version "2.0">
<!ENTITY gradle.version "2.3">
<!ENTITY gradle.version "3.2">
<!ENTITY asm.version "8.0">
<!ENTITY jarjar.asm.version "5.2">
]>
Expand All @@ -38,6 +38,7 @@
<dependency org="org.gradle" name="gradle-core" rev="&gradle.version;" conf="build"/>
<dependency org="org.gradle" name="gradle-base-services" rev="&gradle.version;" conf="build"/>
<dependency org="org.gradle" name="gradle-base-services-groovy" rev="&gradle.version;" conf="build"/>
<dependency org="org.gradle" name="gradle-logging" rev="&gradle.version;" conf="build"/>
<dependency org="org.slf4j" name="slf4j-api" rev="1.7.7" conf="build"/>
<!-- Gradle also needs Groovy, but we need it as build tool, too: -->
<dependency org="org.codehaus.groovy" name="groovy-all" rev="2.4.17" conf="build,buildtools"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
import org.gradle.api.file.FileCollection;
import org.gradle.api.file.FileTree;
import org.gradle.api.file.FileTreeElement;
import org.gradle.api.resources.ResourceException;
import org.gradle.api.specs.Spec;
import org.gradle.api.tasks.Classpath;
import org.gradle.api.tasks.Input;
import org.gradle.api.tasks.InputFiles;
import org.gradle.api.tasks.Optional;
Expand Down Expand Up @@ -174,6 +174,7 @@ public void setPatternSet(PatternSet patternSet) {
* Defaults to current sourseSet's compile classpath.
*/
@InputFiles
@Classpath
public FileCollection getClasspath() {
return classpath;
}
Expand Down Expand Up @@ -595,7 +596,7 @@ public void info(String msg) {
checker.parseSignaturesString(sb.toString());
}
} catch (IOException ioe) {
throw new ResourceException("IO problem while reading files with API signatures.", ioe);
throw new GradleException("IO problem while reading files with API signatures.", ioe);
} catch (ParseException pe) {
throw new InvalidUserDataException("Parsing signatures failed: " + pe.getMessage(), pe);
}
Expand All @@ -612,7 +613,7 @@ public void info(String msg) {
try {
checker.addClassesToCheck(getClassFiles());
} catch (IOException ioe) {
throw new ResourceException("Failed to load one of the given class files.", ioe);
throw new GradleException("Failed to load one of the given class files.", ioe);
}

checker.run();
Expand Down

0 comments on commit f8c8fa5

Please sign in to comment.