Skip to content

Commit 5b303b5

Browse files
committed
switch to gradle
1 parent b16a386 commit 5b303b5

File tree

10 files changed

+406
-207
lines changed

10 files changed

+406
-207
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,39 @@
1-
name: Continuous Integration
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
6+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
27

3-
on: [ push ]
8+
name: Java CI with Gradle
9+
10+
on:
11+
push:
12+
branches: [ "develop" ]
13+
pull_request:
14+
branches: [ "develop" ]
15+
16+
permissions:
17+
contents: read
418

519
jobs:
620
build:
21+
722
runs-on: ubuntu-latest
823

924
steps:
10-
- uses: actions/checkout@v2
25+
- uses: actions/checkout@v3
26+
- name: Set up JDK 17
27+
uses: actions/setup-java@v3
28+
with:
29+
java-version: '17'
30+
distribution: 'temurin'
1131
- name: Set up JDK 8
12-
uses: actions/setup-java@v1
32+
uses: actions/setup-java@v3
33+
with:
34+
java-version: '8'
35+
distribution: 'temurin'
36+
- name: Build with Gradle
37+
uses: gradle/gradle-build-action@bd5760595778326ba7f1441bcf7e88b49de61a25 # v2.6.0
1338
with:
14-
java-version: 8
15-
- name: Build with Maven
16-
run: mvn -B clean verify --file pom.xml
39+
arguments: build

build.gradle

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
plugins {
2+
id 'java-library'
3+
id 'checkstyle'
4+
}
5+
6+
checkstyle {
7+
toolVersion "10.2"
8+
}
9+
10+
group = 'com.github.biczomate'
11+
version = '1.3.0'
12+
13+
repositories {
14+
mavenCentral()
15+
}
16+
17+
dependencies {
18+
implementation 'org.eclipse.californium:californium-core:3.6.0'
19+
implementation 'org.eclipse.californium:scandium:3.6.0'
20+
implementation 'org.apache.commons:commons-lang3:3.9'
21+
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.2'
22+
}
23+
24+
tasks.withType(JavaCompile).configureEach {
25+
javaCompiler = javaToolchains.compilerFor {
26+
languageVersion = JavaLanguageVersion.of(8)
27+
}
28+
}

gradle/wrapper/gradle-wrapper.jar

61.9 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 248 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)