Excavator: Upgrades Baseline to the latest version (#136)

This commit is contained in:
Excavator Bot 2019-08-02 02:34:01 +01:00 committed by Mark Elliot
parent b5567e4516
commit 859bf45cbb
5 changed files with 8 additions and 4 deletions

View file

@ -422,6 +422,7 @@
<property name="allowEmptyMethods" value="true"/>
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyLoops" value="true"/>
<property name="allowEmptyLambdas" value="true"/>
<property name="ignoreEnhancedForColon" value="false"/>
<message key="ws.notFollowed" value="WhitespaceAround: ''{0}'' is not followed by whitespace. Empty blocks may only be represented as '{}' when not part of a multi-block statement (4.1.3)"/>
<message key="ws.notPreceded" value="WhitespaceAround: ''{0}'' is not preceded with whitespace."/>
@ -435,7 +436,7 @@
</module>
<module name="CyclomaticComplexity"/> <!-- Java Coding Guidelines: Reduce Cyclomatic Complexity -->
<module name="DesignForExtension"> <!-- Java Coding Guidelines: Design for extension -->
<property name="ignoredAnnotations" value="Test, Before, BeforeEach, After, AfterEach, BeforeClass, BeforeAll, AfterClass, AfterAll"/>
<property name="ignoredAnnotations" value="ParameterizedTest, Test, Before, BeforeEach, After, AfterEach, BeforeClass, BeforeAll, AfterClass, AfterAll"/>
</module>
<module name="JavadocMethod"> <!-- Java Style Guide: Where Javadoc is used -->
<property name="scope" value="public"/>

View file

@ -25,7 +25,7 @@ buildscript {
classpath 'com.gradle.publish:plugin-publish-plugin:0.10.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.netflix.nebula:nebula-publishing-plugin:13.0.0'
classpath 'com.palantir.baseline:gradle-baseline-java:0.65.0'
classpath 'com.palantir.baseline:gradle-baseline-java:1.8.2'
classpath 'gradle.plugin.com.palantir.gradle.gitversion:gradle-git-version:0.7.3'
classpath 'gradle.plugin.org.inferred:gradle-processors:2.2.0'
}
@ -56,6 +56,7 @@ version gitVersion()
dependencies {
compile localGroovy()
compile gradleApi()
compile 'com.palantir.safe-logging:preconditions'
testCompile gradleTestKit()
testCompile 'com.netflix.nebula:nebula-test'

View file

@ -16,6 +16,7 @@
package com.palantir.gradle.graal;
import com.palantir.logsafe.exceptions.SafeIllegalStateException;
import java.io.File;
import java.nio.file.Path;
import java.nio.file.Paths;
@ -54,7 +55,7 @@ public class ExtractGraalTask extends DefaultTask {
@TaskAction
public final void extractGraal() {
if (!graalVersion.isPresent()) {
throw new IllegalStateException("extract task requires graal.graalVersion to be defined.");
throw new SafeIllegalStateException("extract task requires graal.graalVersion to be defined.");
}
// ideally this would be a CopyTask, but through Gradle 4.9 CopyTask fails to correctly extract symlinks

View file

@ -53,7 +53,7 @@ public class GradleGraalPlugin implements Plugin<Project> {
Path cacheDir = Optional.ofNullable((String) project.findProperty("com.palantir.graal.cache.dir"))
.map(Paths::get)
.orElse(project.getGradle().getGradleUserHomeDir().toPath()
.orElseGet(() -> project.getGradle().getGradleUserHomeDir().toPath()
.resolve("caches")
.resolve("com.palantir.graal"));

View file

@ -1,5 +1,6 @@
com.google.guava:guava = 27.0.1-jre
com.netflix.nebula:nebula-test = 7.2.5
com.palantir.safe-logging:preconditions = 1.10.1
com.squareup.okhttp3:* = 3.14.1
# conflict resolution