Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit 8a04e7a

Browse files
committed
Gradle update, and set version properly even locally
1 parent f2e9f96 commit 8a04e7a

File tree

5 files changed

+13
-9
lines changed

5 files changed

+13
-9
lines changed

build.gradle.kts

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = "com.github.navikt"
10-
version = properties["version"] ?: "local-build"
10+
version = (if (properties["version"] != null && properties["version"] != "unspecified") properties["version"] else "local-build")!!
1111

1212
java {
1313
sourceCompatibility = JavaVersion.VERSION_1_8
@@ -34,17 +34,18 @@ val test by tasks.getting(Test::class) {
3434
// Use junit platform for unit tests
3535
useJUnitPlatform()
3636
testLogging {
37-
events("passed", "skipped", "failed")
38-
showExceptions = true
39-
showStackTraces = true
40-
showCauses = true
41-
exceptionFormat = TestExceptionFormat.FULL
42-
showStandardStreams = true
37+
events("passed", "skipped", "failed")
38+
showExceptions = true
39+
showStackTraces = true
40+
showCauses = true
41+
exceptionFormat = TestExceptionFormat.FULL
42+
showStandardStreams = true
4343
}
4444
}
4545

4646
tasks.withType<Wrapper> {
47-
gradleVersion = "6.4.1"
47+
gradleVersion = "6.4.1"
48+
distributionType = Wrapper.DistributionType.ALL
4849
}
4950

5051
val sourcesJar by tasks.registering(Jar::class) {

gradle/wrapper/gradle-wrapper.jar

215 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ esac
8282

8383
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
8484

85+
8586
# Determine the Java command to use to start the JVM.
8687
if [ -n "$JAVA_HOME" ] ; then
8788
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -129,6 +130,7 @@ fi
129130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
132134
JAVACMD=`cygpath --unix "$JAVACMD"`
133135

134136
# We build the pattern for arguments to be converted via cygpath

gradlew.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ set CMD_LINE_ARGS=%*
8484

8585
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8686

87+
8788
@rem Execute Gradle
8889
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
8990

0 commit comments

Comments
 (0)