Skip to content

Commit

Permalink
updating to java 17 and gradle 8.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tomcz committed Dec 12, 2023
1 parent 623181f commit ca9ea0e
Show file tree
Hide file tree
Showing 12 changed files with 213 additions and 165 deletions.
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
* text=auto eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
*.bat eol=crlf
*.cmd eol=crlf
4 changes: 2 additions & 2 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
- name: Build with Gradle
run: make all
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '11'
java-version: '17'
distribution: 'adopt'
- name: Build with Gradle
run: make all
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ test.txt
build
out
.idea/
gradle.properties
.project
.settings
.classpath
bin
bin
2 changes: 1 addition & 1 deletion .java-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13
17
19 changes: 6 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,19 +1,12 @@
GIT_TAG := $(shell git describe --tags 2>/dev/null)

.PHONY: all
all: clean test build

.PHONY: build
build: clean
./gradlew --console plain -Pversion=${GIT_TAG} shadowJar
ifeq "${GIT_TAG}" ""
GIT_TAG := dev
endif

.PHONY: clean
clean:
./gradlew --console plain clean

.PHONY: test
test:
./gradlew --console plain test -Dignore.integration.tests='true'
.PHONY: all
all:
./gradlew --console plain -Pversion=${GIT_TAG}

.PHONY: deps
deps:
Expand Down
17 changes: 6 additions & 11 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
plugins {
id 'com.github.johnrengelman.shadow' version '5.2.0'
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}

repositories {
mavenCentral()
}

defaultTasks 'clean', 'test', 'build', 'shadowJar'

mainClassName = 'com.tomczarniecki.s3.Main'

configurations.all {
exclude(group: 'commons-logging')
}
Expand Down Expand Up @@ -35,12 +39,3 @@ dependencies {
test {
systemProperty "ignore.integration.tests", System.getProperty("ignore.integration.tests")
}

jar {
manifest {
attributes(
'Main-Class': 'com.tomczarniecki.s3.Main',
'Implementation-Version': archiveVersion?: 'dev'
)
}
}
1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.gradle.daemon=false
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 3 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit ca9ea0e

Please sign in to comment.