Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_dispatch:

env:
JAVA_VERSION: '17'
JAVA_VERSION: '21'

jobs:

Expand All @@ -14,16 +14,16 @@ jobs:
outputs:
release-version: ${{ steps.version-step.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v6

- name: Get DDI-Lifecycle lib version
id: version-step
Expand Down Expand Up @@ -55,10 +55,10 @@ jobs:
needs: check-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
Expand Down Expand Up @@ -86,10 +86,10 @@ jobs:
needs: [check-version, publish]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Create GitHub release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ needs.check-version.outputs.release-version }}
target_commitish: ${{ github.head_ref || github.ref }}
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/snapshot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [labeled]

env:
JAVA_VERSION: '17'
JAVA_VERSION: '21'

jobs:

Expand All @@ -15,10 +15,10 @@ jobs:
outputs:
snapshot-version: ${{ steps.version-step.outputs.version }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
Expand Down Expand Up @@ -58,16 +58,16 @@ jobs:
needs: check-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
uses: gradle/actions/setup-gradle@v6

- name: Publish DDI Lifecycle lib on Maven Central
run: |
Expand All @@ -80,7 +80,7 @@ jobs:
needs: [check-version, publish-snapshot]
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v7
- uses: actions/github-script@v9
with:
script: |
github.rest.issues.createComment({
Expand All @@ -95,7 +95,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Create tag
uses: actions/github-script@v7
uses: actions/github-script@v9
with:
script: |
github.rest.git.createRef({
Expand All @@ -108,7 +108,7 @@ jobs:
remove-publish-label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
- uses: actions-ecosystem/action-remove-labels@v1
with:
labels: 'publish-snapshot'
6 changes: 3 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ on:
- 'README.md'

env:
JAVA_VERSION: '17'
JAVA_VERSION: '21'

jobs:
test:
if: ${{ (github.event.pull_request.draft == false) && !contains(github.event.pull_request.labels.*.name, 'publish-snapshot') }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6

- name: Setup Java
uses: actions/setup-java@v4
uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: ${{ env.JAVA_VERSION }}
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This library offers deserialization / serialization for DDI objects, using metho

### Requirements

Java 17 or above.
Java 21 or above.

### [Get the dependency](https://mvnrepository.com/artifact/fr.insee.ddi/ddi-lifecycle)

Expand All @@ -21,14 +21,14 @@ Maven:
<dependency>
<groupId>fr.insee.ddi</groupId>
<artifactId>ddi-lifecycle</artifactId>
<version>1.1.0</version>
<version>2.0.0</version>
</dependency>
```

Gradle:

```kotlin
implementation("fr.insee.ddi:ddi-lifecycle:1.1.0")
implementation("fr.insee.ddi:ddi-lifecycle:2.0.0")
```

### Deserialize / serialize DDI objects
Expand Down
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ plugins {

allprojects {
group = "fr.insee.ddi"
version = "1.1.1"
version = "2.0.0"
}

tasks.register("printVersion") {
description = "Prints the project version in console."
group = JavaBasePlugin.BUILD_TASK_NAME
doLast {
println(project.version)
}
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-9.4.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
24 changes: 18 additions & 6 deletions model/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ plugins {
java {
// Apply a specific Java toolchain to ease working on different environments.
toolchain {
languageVersion.set(JavaLanguageVersion.of(17))
languageVersion.set(JavaLanguageVersion.of(21))
}
// Generate javadoc and sources jar for maven central publishing
withJavadocJar()
Expand All @@ -24,19 +24,31 @@ repositories {
mavenCentral()
}

val lo4jVersion = "2.25.4"
val springVersion = "7.0.6"
val junitVersion = "6.0.3"
val xmlUnitVersion = "2.11.0"
val assertJVersion = "3.27.7"

dependencies {
// This dependency is exported to consumers, that is to say found on their compile classpath.
api("org.apache.xmlbeans:xmlbeans:5.3.0")
// This dependency is used internally, and not exposed to consumers on their own compile classpath.
implementation("org.apache.logging.log4j:log4j-core:2.25.4")
implementation("org.apache.logging.log4j:log4j-core:$lo4jVersion")
//
implementation("org.springframework:spring-beans:6.2.17")
implementation("org.springframework:spring-beans:$springVersion")

// Use JUnit Jupiter for testing.
testImplementation("org.junit.jupiter:junit-jupiter:5.14.3")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.14.3")
testImplementation("org.junit.jupiter:junit-jupiter:$junitVersion")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:$junitVersion")
// XMLUnit
testImplementation("org.xmlunit:xmlunit-assertj3:2.11.0")
testImplementation("org.xmlunit:xmlunit-assertj3:$xmlUnitVersion")

constraints {
testImplementation("org.assertj:assertj-core:$assertJVersion") {
because("Temporary fix for CVE in the assertj-core imported by xmlunit-assertj3.")
}
}
}

sourceSets {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
// Apply the foojay-resolver plugin to allow automatic download of JDKs
id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0"
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
}

rootProject.name = "DDI-Lifecycle-Java"
Expand Down
Loading