Skip to content

Commit 18dc8e3

Browse files
authored
move to gradle (#16)
* Move to gradle * Move to gradle * Add nexus
1 parent cad5fca commit 18dc8e3

29 files changed

+410
-222
lines changed

.classpath

-50
This file was deleted.

.github/workflows/gradle.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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+
6+
name: Java CI
7+
8+
on: [push]
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout sources
15+
uses: actions/checkout@v4
16+
- name: Setup Java
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: 'temurin'
20+
java-version: 17
21+
- name: Setup Gradle
22+
uses: gradle/actions/setup-gradle@v4
23+
- name: Build with Gradle
24+
run: ./gradlew build

.gitignore

+6-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,9 @@ hs_err_pid*
1717
# IntelliJ IDEA
1818
.idea/
1919
*.iml
20-
.vscode/
20+
.vscode/
21+
# Ignore Gradle project-specific cache directory
22+
.gradle
23+
24+
# Ignore Gradle build output directory
25+
build

.project

-23
This file was deleted.

.settings/org.eclipse.core.resources.prefs

-5
This file was deleted.

.settings/org.eclipse.jdt.apt.core.prefs

-2
This file was deleted.

.settings/org.eclipse.jdt.core.prefs

-7
This file was deleted.

build.gradle.kts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
plugins {
3+
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
4+
}
5+
6+
7+
// https://github.com/gradle-nexus/publish-plugin/?tab=readme-ov-file#publishing-to-maven-central-via-sonatype-ossrh
8+
nexusPublishing {
9+
repositories {
10+
// the user token is set outside the project
11+
// https://central.sonatype.org/publish/generate-token/
12+
sonatype()
13+
}
14+
}

gradle.properties

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# This file was generated by the Gradle 'init' task.
2+
# https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties
3+
4+
org.gradle.configuration-cache=true
5+

gradle/libs.versions.toml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# This file was generated by the Gradle 'init' task.
2+
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
3+
4+
[versions]
5+
junit-jupiter = "5.10.3"
6+
logback-classic = "1.2.13"
7+
8+
[libraries]
9+
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junit-jupiter" }
10+
logback-classic = { module = "ch.qos.logback:logback-classic", version.ref = "logback-classic" }
+7
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.11-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)