From e4ca9008b3ee99fea5d0eeb89fe0a86186eff369 Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:05:25 +0100 Subject: [PATCH 01/10] fix: Create version TOML [COMP-1266] --- build.gradle | 139 ++++++++++++++++++-------------------- gradle.properties | 3 - gradle/libs.versions.toml | 35 ++++++++++ settings.gradle | 5 +- 4 files changed, 102 insertions(+), 80 deletions(-) create mode 100644 gradle/libs.versions.toml diff --git a/build.gradle b/build.gradle index 5b068ab..b5593b6 100644 --- a/build.gradle +++ b/build.gradle @@ -12,10 +12,10 @@ import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform plugins { - id 'org.cadixdev.licenser' version '0.6.1' - id 'org.graalvm.buildtools.native' - id("io.micronaut.application") version "4.4.2" - id 'com.github.johnrengelman.shadow' version '8.1.1' + alias(libs.plugins.licenser) + alias(libs.plugins.graalvmNative) + alias(libs.plugins.micronautApplication) + alias(libs.plugins.shadow) } version = project.file('VERSION').text.strip() @@ -25,41 +25,28 @@ repositories { mavenCentral() } -micronaut { - runtime("netty") - testRuntime("junit5") - processing { - incremental(true) - annotations("io.seqera.tower.agent.*") - } -} - -def junitVersion = providers.gradleProperty('junit.jupiter.version') - .forUseAtConfigurationTime() - .get() - dependencies { - annotationProcessor("info.picocli:picocli-codegen") - annotationProcessor("io.micronaut:micronaut-http-validation") - annotationProcessor("io.micronaut:micronaut-inject-java") - annotationProcessor("io.micronaut:micronaut-graal") - implementation("io.micronaut:micronaut-http-client") - implementation("io.micronaut:micronaut-runtime") - implementation("io.micronaut.picocli:micronaut-picocli") - implementation("io.micronaut.rxjava2:micronaut-rxjava2") - implementation("io.micronaut.rxjava2:micronaut-rxjava2-http-client") - implementation("info.picocli:picocli") - implementation("javax.annotation:javax.annotation-api") - implementation("javax.inject:javax.inject:1") - runtimeOnly("ch.qos.logback:logback-classic") - runtimeOnly("org.yaml:snakeyaml") - compileOnly("org.graalvm.nativeimage:svm") - - implementation("io.micronaut.validation:micronaut-validation") - implementation("io.micronaut:micronaut-jackson-databind") - - testImplementation(platform("org.junit:junit-bom:${junitVersion}")) - testImplementation('org.junit.jupiter:junit-jupiter') + annotationProcessor(libs.picocliCodegen) + annotationProcessor(libs.micronautHttpValidation) + annotationProcessor(libs.micronautInjectJava) + annotationProcessor(libs.micronautGraal) + implementation(libs.micronautHttpClient) + implementation(libs.micronautRuntime) + implementation(libs.micronautPicocli) + implementation(libs.micronautRxjava2) + implementation(libs.micronautRxjava2HttpClient) + implementation(libs.picocli) + implementation(libs.javaxAnnotation) + implementation(libs.javaxInject) + runtimeOnly(libs.logbackClassic) + runtimeOnly(libs.snakeyaml) + compileOnly(libs.graalvmSvm) + + implementation(libs.micronautValidation) + implementation(libs.micronautJacksonDatabind) + + testImplementation(platform(libs.junitBom)) + testImplementation(libs.junitJupiter) } license { @@ -72,23 +59,9 @@ license { exclude 'gradlew' } -application { - mainClass.set("io.seqera.tower.agent.Agent") -} - -task buildInfo { - doLast { - def version = rootProject.file('VERSION').text.trim() - def versionApi = rootProject.file('VERSION-API').text.trim() - def commitId = System.env.getOrDefault("GITHUB_SHA", "unknown").substring(0,7) - def info = """\ - version=${version} - versionApi=${versionApi} - commitId=${commitId} - """.stripIndent().toString() - def f = file("src/main/resources/META-INF/build-info.properties") - f.parentFile.mkdirs() - f.text = info +java { + toolchain { + languageVersion = JavaLanguageVersion.of(21) } } @@ -100,24 +73,6 @@ compileJava { dependsOn buildInfo } -java { - toolchain { - languageVersion = JavaLanguageVersion.of(21) - } -} - -shadowJar { - archiveBaseName.set('tw-agent') - archiveClassifier.set('') - archiveVersion.set('') -} - -test { - useJUnitPlatform() - dependsOn checkLicenses -} - - graalvmNative { binaries { main { @@ -138,6 +93,44 @@ graalvmNative { } } +shadowJar { + archiveBaseName.set('tw-agent') + archiveClassifier.set('') + archiveVersion.set('') +} + +micronaut { + runtime("netty") + testRuntime("junit5") + processing { + incremental(true) + annotations("io.seqera.tower.agent.*") + } +} + +application { + mainClass.set("io.seqera.tower.agent.Agent") +} + +test { + useJUnitPlatform() + dependsOn checkLicenses +} +task buildInfo { + doLast { + def version = rootProject.file('VERSION').text.trim() + def versionApi = rootProject.file('VERSION-API').text.trim() + def commitId = System.env.getOrDefault("GITHUB_SHA", "unknown").substring(0, 7) + def info = """\ + version=${version} + versionApi=${versionApi} + commitId=${commitId} + """.stripIndent().toString() + def f = file("src/main/resources/META-INF/build-info.properties") + f.parentFile.mkdirs() + f.text = info + } +} diff --git a/gradle.properties b/gradle.properties index 82fa394..df94584 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1 @@ micronautVersion=4.10.0 -native.gradle.plugin.version = 0.10.4 -junit.jupiter.version = 5.8.1 -junit.platform.version = 1.8.1 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml new file mode 100644 index 0000000..0d7d335 --- /dev/null +++ b/gradle/libs.versions.toml @@ -0,0 +1,35 @@ +[versions] +foojayVersion = "0.7.0" +graalvmNativeVersion = "0.10.4" +junitVersion = "5.8.1" +licenserVersion = "0.6.1" +micronautApplicationVersion = "4.4.2" +shadowVersion = "8.1.1" + +[libraries] +graalvmSvm = { group = "org.graalvm.nativeimage", name = "svm" } +javaxAnnotation = { group = "javax.annotation", name = "javax.annotation-api" } +javaxInject = { group = "javax.inject", name = "javax.inject", version = "1" } +junitBom = { group = "org.junit", name = "junit-bom", version.ref = "junitVersion" } +junitJupiter = { group = "org.junit.jupiter", name = "junit-jupiter" } +logbackClassic = { group = "ch.qos.logback", name = "logback-classic" } +micronautGraal = { group = "io.micronaut", name = "micronaut-graal" } +micronautHttpClient = { group = "io.micronaut", name = "micronaut-http-client" } +micronautHttpValidation = { group = "io.micronaut", name = "micronaut-http-validation" } +micronautInjectJava = { group = "io.micronaut", name = "micronaut-inject-java" } +micronautJacksonDatabind = { group = "io.micronaut", name = "micronaut-jackson-databind" } +micronautPicocli = { group = "io.micronaut.picocli", name = "micronaut-picocli" } +micronautRuntime = { group = "io.micronaut", name = "micronaut-runtime" } +micronautRxjava2 = { group = "io.micronaut.rxjava2", name = "micronaut-rxjava2" } +micronautRxjava2HttpClient = { group = "io.micronaut.rxjava2", name = "micronaut-rxjava2-http-client" } +micronautValidation = { group = "io.micronaut.validation", name = "micronaut-validation" } +picocli = { group = "info.picocli", name = "picocli" } +picocliCodegen = { group = "info.picocli", name = "picocli-codegen" } +snakeyaml = { group = "org.yaml", name = "snakeyaml" } + +[plugins] +foojay = { id = "org.gradle.toolchains.foojay-resolver-convention", version.ref = "foojayVersion" } +graalvmNative = { id = "org.graalvm.buildtools.native", version.ref = "graalvmNativeVersion" } +licenser = { id = "org.cadixdev.licenser", version.ref = "licenserVersion" } +micronautApplication = { id = "io.micronaut.application", version.ref = "micronautApplicationVersion" } +shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadowVersion" } diff --git a/settings.gradle b/settings.gradle index c134415..2b52eed 100644 --- a/settings.gradle +++ b/settings.gradle @@ -10,9 +10,6 @@ */ pluginManagement { - plugins { - id 'org.graalvm.buildtools.native' version getProperty('native.gradle.plugin.version') - } repositories { mavenCentral() gradlePluginPortal() @@ -23,7 +20,7 @@ plugins { // required to download the toolchain (jdk) from a remote repository // https://github.com/gradle/foojay-toolchains // https://docs.gradle.org/current/userguide/toolchains.html#sub:download_repositories - id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0" + alias(libs.plugins.foojay) } rootProject.name = "tower-agent" From 84976f0b5bb34e8316188fe042800e2180226792 Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:06:38 +0100 Subject: [PATCH 02/10] feat: Upgrade Gradle 9.3.1 [COMP-1266] --- gradle/wrapper/gradle-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 0734a0a..bde5843 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -17,7 +17,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-9.3.1-bin.zip networkTimeout=10000 zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists From 2cbc2cef9eb71143f9ebee71c0964c92ee18beae Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:09:41 +0100 Subject: [PATCH 03/10] feat: Update license header plugin to yumi-licenser [COMP-1266] --- HEADER.txt | 2 +- build.gradle | 10 +++------- gradle/libs.versions.toml | 4 ++-- 3 files changed, 6 insertions(+), 10 deletions(-) diff --git a/HEADER.txt b/HEADER.txt index 9864c83..d8b1396 100644 --- a/HEADER.txt +++ b/HEADER.txt @@ -1,4 +1,4 @@ -Copyright ${year}, ${name}. +Copyright 2021-2026, Seqera. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/build.gradle b/build.gradle index b5593b6..6bb3d80 100644 --- a/build.gradle +++ b/build.gradle @@ -50,13 +50,9 @@ dependencies { } license { - header = project.file('HEADER.txt') - properties { - name = 'Seqera' - year = '2021-2024' - } - exclude '**/*.properties' - exclude 'gradlew' + rule(file('HEADER.txt')) + exclude('**/*.properties') + exclude('gradlew') } java { diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 0d7d335..6c84d1c 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -2,7 +2,7 @@ foojayVersion = "0.7.0" graalvmNativeVersion = "0.10.4" junitVersion = "5.8.1" -licenserVersion = "0.6.1" +licenserVersion = "2.2.2" micronautApplicationVersion = "4.4.2" shadowVersion = "8.1.1" @@ -30,6 +30,6 @@ snakeyaml = { group = "org.yaml", name = "snakeyaml" } [plugins] foojay = { id = "org.gradle.toolchains.foojay-resolver-convention", version.ref = "foojayVersion" } graalvmNative = { id = "org.graalvm.buildtools.native", version.ref = "graalvmNativeVersion" } -licenser = { id = "org.cadixdev.licenser", version.ref = "licenserVersion" } +licenser = { id = "dev.yumi.gradle.licenser", version.ref = "licenserVersion" } micronautApplication = { id = "io.micronaut.application", version.ref = "micronautApplicationVersion" } shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadowVersion" } From c5a318669d5bcc3a87968220f99f823897b27634 Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:12:05 +0100 Subject: [PATCH 04/10] feat: Update dependencies [COMP-1266] --- gradle/libs.versions.toml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 6c84d1c..5e9ade4 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -4,7 +4,7 @@ graalvmNativeVersion = "0.10.4" junitVersion = "5.8.1" licenserVersion = "2.2.2" micronautApplicationVersion = "4.4.2" -shadowVersion = "8.1.1" +shadowVersion = "9.3.1" [libraries] graalvmSvm = { group = "org.graalvm.nativeimage", name = "svm" } @@ -32,4 +32,4 @@ foojay = { id = "org.gradle.toolchains.foojay-resolver-convention", version.ref graalvmNative = { id = "org.graalvm.buildtools.native", version.ref = "graalvmNativeVersion" } licenser = { id = "dev.yumi.gradle.licenser", version.ref = "licenserVersion" } micronautApplication = { id = "io.micronaut.application", version.ref = "micronautApplicationVersion" } -shadow = { id = "com.github.johnrengelman.shadow", version.ref = "shadowVersion" } +shadow = { id = "com.gradleup.shadow", version.ref = "shadowVersion" } From 3e8855a42cb2d3fed885bbe19e3336c29af3ba0e Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:13:41 +0100 Subject: [PATCH 05/10] feat: Improve gradle and project files after dependency updates [COMP-1266] --- .github/workflows/build.yml | 3 +-- build.gradle | 40 +++++++++++++++++-------------------- 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 07ebf02..8a823ca 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: tags-ignore: - '*' pull_request: - types: [opened, reopened, synchronize] + types: [ opened, reopened, synchronize ] jobs: linux-image: @@ -62,7 +62,6 @@ jobs: with: name: tw-agent-jar path: build/libs/tw-agent.jar - release: name: Release diff --git a/build.gradle b/build.gradle index 6bb3d80..ddb6a44 100644 --- a/build.gradle +++ b/build.gradle @@ -9,8 +9,6 @@ * defined by the Mozilla Public License, v. 2.0. */ -import org.gradle.nativeplatform.platform.internal.DefaultNativePlatform - plugins { alias(libs.plugins.licenser) alias(libs.plugins.graalvmNative) @@ -61,21 +59,15 @@ java { } } -compileJava { - options.release.set(17) - sourceCompatibility = '21' - targetCompatibility = '21' - options.compilerArgs += ["-Aproject=${project.name}"] - dependsOn buildInfo -} - graalvmNative { binaries { main { imageName = 'tw-agent' mainClass = 'io.seqera.tower.agent.Agent' configurationFileDirectories.from(file('conf')) - buildArgs(DefaultNativePlatform.currentOperatingSystem.isLinux() ? ['--static', '--libc=musl'] : []) + if (System.env.getOrDefault("PLATFORM", "") == "linux-x86_64") { + buildArgs(['--static', '--libc=musl']) + } buildArgs.add('--allow-incomplete-classpath') buildArgs.add('--report-unsupported-elements-at-runtime') buildArgs.add('-H:+AddAllCharsets') @@ -89,12 +81,6 @@ graalvmNative { } } -shadowJar { - archiveBaseName.set('tw-agent') - archiveClassifier.set('') - archiveVersion.set('') -} - micronaut { runtime("netty") testRuntime("junit5") @@ -108,12 +94,24 @@ application { mainClass.set("io.seqera.tower.agent.Agent") } -test { +tasks.named('compileJava') { + options.release = 21 + options.compilerArgs += ["-Aproject=${project.name}"] + dependsOn tasks.named('buildInfo') +} + +tasks.named('shadowJar') { + archiveBaseName.set('tw-agent') + archiveClassifier.set('') + archiveVersion.set('') +} + +tasks.named('test') { useJUnitPlatform() - dependsOn checkLicenses + dependsOn tasks.named('checkLicenses') } -task buildInfo { +tasks.register('buildInfo') { doLast { def version = rootProject.file('VERSION').text.trim() def versionApi = rootProject.file('VERSION-API').text.trim() @@ -128,5 +126,3 @@ task buildInfo { f.text = info } } - - From c98bc0f1c82755b52400ad78a7a476a570b965ed Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:22:58 +0100 Subject: [PATCH 06/10] feat: Update dependencies [COMP-1266] --- gradle.properties | 2 +- gradle/libs.versions.toml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gradle.properties b/gradle.properties index df94584..e59b5ec 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1 +1 @@ -micronautVersion=4.10.0 +micronautVersion=4.10.8 diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 5e9ade4..64d6fab 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,9 +1,9 @@ [versions] -foojayVersion = "0.7.0" -graalvmNativeVersion = "0.10.4" -junitVersion = "5.8.1" +foojayVersion = "1.0.0" +graalvmNativeVersion = "0.10.6" +junitVersion = "5.14.3" licenserVersion = "2.2.2" -micronautApplicationVersion = "4.4.2" +micronautApplicationVersion = "4.6.2" shadowVersion = "9.3.1" [libraries] From 7442bf9713f9220f4d3671c4e9c40d6af1067a01 Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:25:16 +0100 Subject: [PATCH 07/10] fix: Move buildInfo before compileJava --- build.gradle | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/build.gradle b/build.gradle index ddb6a44..454b272 100644 --- a/build.gradle +++ b/build.gradle @@ -94,6 +94,22 @@ application { mainClass.set("io.seqera.tower.agent.Agent") } +tasks.register('buildInfo') { + doLast { + def version = rootProject.file('VERSION').text.trim() + def versionApi = rootProject.file('VERSION-API').text.trim() + def commitId = System.env.getOrDefault("GITHUB_SHA", "unknown").substring(0, 7) + def info = """\ + version=${version} + versionApi=${versionApi} + commitId=${commitId} + """.stripIndent().toString() + def f = file("src/main/resources/META-INF/build-info.properties") + f.parentFile.mkdirs() + f.text = info + } +} + tasks.named('compileJava') { options.release = 21 options.compilerArgs += ["-Aproject=${project.name}"] @@ -110,19 +126,3 @@ tasks.named('test') { useJUnitPlatform() dependsOn tasks.named('checkLicenses') } - -tasks.register('buildInfo') { - doLast { - def version = rootProject.file('VERSION').text.trim() - def versionApi = rootProject.file('VERSION-API').text.trim() - def commitId = System.env.getOrDefault("GITHUB_SHA", "unknown").substring(0, 7) - def info = """\ - version=${version} - versionApi=${versionApi} - commitId=${commitId} - """.stripIndent().toString() - def f = file("src/main/resources/META-INF/build-info.properties") - f.parentFile.mkdirs() - f.text = info - } -} From f3dea9ad71562c0a58e0c5e6b786584dacce43f3 Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:25:51 +0100 Subject: [PATCH 08/10] fix: Move foojay plugin config and version --- gradle/libs.versions.toml | 2 -- settings.gradle | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 64d6fab..e9eee9d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,4 @@ [versions] -foojayVersion = "1.0.0" graalvmNativeVersion = "0.10.6" junitVersion = "5.14.3" licenserVersion = "2.2.2" @@ -28,7 +27,6 @@ picocliCodegen = { group = "info.picocli", name = "picocli-codegen" } snakeyaml = { group = "org.yaml", name = "snakeyaml" } [plugins] -foojay = { id = "org.gradle.toolchains.foojay-resolver-convention", version.ref = "foojayVersion" } graalvmNative = { id = "org.graalvm.buildtools.native", version.ref = "graalvmNativeVersion" } licenser = { id = "dev.yumi.gradle.licenser", version.ref = "licenserVersion" } micronautApplication = { id = "io.micronaut.application", version.ref = "micronautApplicationVersion" } diff --git a/settings.gradle b/settings.gradle index 2b52eed..08b225a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -20,7 +20,7 @@ plugins { // required to download the toolchain (jdk) from a remote repository // https://github.com/gradle/foojay-toolchains // https://docs.gradle.org/current/userguide/toolchains.html#sub:download_repositories - alias(libs.plugins.foojay) + id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0" } rootProject.name = "tower-agent" From 95dd2e17a3fcdb3640d2e3f59802a645a59d673f Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:33:51 +0100 Subject: [PATCH 09/10] feat: Apply license headers --- .../java/io/seqera/tower/agent/Agent.java | 3 +-- .../seqera/tower/agent/AgentClientSocket.java | 3 +-- .../exceptions/RecoverableException.java | 3 +-- .../exceptions/UnrecoverableException.java | 3 +-- .../tower/agent/exchange/AgentMessage.java | 3 +-- .../tower/agent/exchange/CommandRequest.java | 3 +-- .../tower/agent/exchange/CommandResponse.java | 3 +-- .../agent/exchange/HeartbeatMessage.java | 3 +-- .../tower/agent/exchange/InfoMessage.java | 3 +-- .../seqera/tower/agent/model/ServiceInfo.java | 3 +-- .../agent/model/ServiceInfoResponse.java | 3 +-- .../tower/agent/utils/VersionProvider.java | 3 +-- src/main/resources/logback.xml | 27 +++++++++---------- .../java/io/seqera/tower/agent/AgentTest.java | 3 +-- 14 files changed, 26 insertions(+), 40 deletions(-) diff --git a/src/main/java/io/seqera/tower/agent/Agent.java b/src/main/java/io/seqera/tower/agent/Agent.java index 00617a1..a515bd2 100644 --- a/src/main/java/io/seqera/tower/agent/Agent.java +++ b/src/main/java/io/seqera/tower/agent/Agent.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent; diff --git a/src/main/java/io/seqera/tower/agent/AgentClientSocket.java b/src/main/java/io/seqera/tower/agent/AgentClientSocket.java index 0bd5ce1..392c01d 100644 --- a/src/main/java/io/seqera/tower/agent/AgentClientSocket.java +++ b/src/main/java/io/seqera/tower/agent/AgentClientSocket.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent; diff --git a/src/main/java/io/seqera/tower/agent/exceptions/RecoverableException.java b/src/main/java/io/seqera/tower/agent/exceptions/RecoverableException.java index 4657b41..6fd1811 100644 --- a/src/main/java/io/seqera/tower/agent/exceptions/RecoverableException.java +++ b/src/main/java/io/seqera/tower/agent/exceptions/RecoverableException.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.exceptions; diff --git a/src/main/java/io/seqera/tower/agent/exceptions/UnrecoverableException.java b/src/main/java/io/seqera/tower/agent/exceptions/UnrecoverableException.java index 59f9d45..016a26e 100644 --- a/src/main/java/io/seqera/tower/agent/exceptions/UnrecoverableException.java +++ b/src/main/java/io/seqera/tower/agent/exceptions/UnrecoverableException.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.exceptions; diff --git a/src/main/java/io/seqera/tower/agent/exchange/AgentMessage.java b/src/main/java/io/seqera/tower/agent/exchange/AgentMessage.java index caacfa0..a67978f 100644 --- a/src/main/java/io/seqera/tower/agent/exchange/AgentMessage.java +++ b/src/main/java/io/seqera/tower/agent/exchange/AgentMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.exchange; diff --git a/src/main/java/io/seqera/tower/agent/exchange/CommandRequest.java b/src/main/java/io/seqera/tower/agent/exchange/CommandRequest.java index f344be2..caa3a69 100644 --- a/src/main/java/io/seqera/tower/agent/exchange/CommandRequest.java +++ b/src/main/java/io/seqera/tower/agent/exchange/CommandRequest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.exchange; diff --git a/src/main/java/io/seqera/tower/agent/exchange/CommandResponse.java b/src/main/java/io/seqera/tower/agent/exchange/CommandResponse.java index c476c73..721110f 100644 --- a/src/main/java/io/seqera/tower/agent/exchange/CommandResponse.java +++ b/src/main/java/io/seqera/tower/agent/exchange/CommandResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.exchange; diff --git a/src/main/java/io/seqera/tower/agent/exchange/HeartbeatMessage.java b/src/main/java/io/seqera/tower/agent/exchange/HeartbeatMessage.java index e4bb24a..95b2627 100644 --- a/src/main/java/io/seqera/tower/agent/exchange/HeartbeatMessage.java +++ b/src/main/java/io/seqera/tower/agent/exchange/HeartbeatMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.exchange; diff --git a/src/main/java/io/seqera/tower/agent/exchange/InfoMessage.java b/src/main/java/io/seqera/tower/agent/exchange/InfoMessage.java index 468eddc..4fec268 100644 --- a/src/main/java/io/seqera/tower/agent/exchange/InfoMessage.java +++ b/src/main/java/io/seqera/tower/agent/exchange/InfoMessage.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.exchange; diff --git a/src/main/java/io/seqera/tower/agent/model/ServiceInfo.java b/src/main/java/io/seqera/tower/agent/model/ServiceInfo.java index 15d7563..279d44a 100644 --- a/src/main/java/io/seqera/tower/agent/model/ServiceInfo.java +++ b/src/main/java/io/seqera/tower/agent/model/ServiceInfo.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.model; diff --git a/src/main/java/io/seqera/tower/agent/model/ServiceInfoResponse.java b/src/main/java/io/seqera/tower/agent/model/ServiceInfoResponse.java index d9bbc79..3ae5367 100644 --- a/src/main/java/io/seqera/tower/agent/model/ServiceInfoResponse.java +++ b/src/main/java/io/seqera/tower/agent/model/ServiceInfoResponse.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.model; diff --git a/src/main/java/io/seqera/tower/agent/utils/VersionProvider.java b/src/main/java/io/seqera/tower/agent/utils/VersionProvider.java index 4f1ba18..b7cf79f 100644 --- a/src/main/java/io/seqera/tower/agent/utils/VersionProvider.java +++ b/src/main/java/io/seqera/tower/agent/utils/VersionProvider.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent.utils; diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index fc7aa8c..a6a5993 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -1,18 +1,17 @@ diff --git a/src/test/java/io/seqera/tower/agent/AgentTest.java b/src/test/java/io/seqera/tower/agent/AgentTest.java index ed3ec53..01418ba 100644 --- a/src/test/java/io/seqera/tower/agent/AgentTest.java +++ b/src/test/java/io/seqera/tower/agent/AgentTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021-2024, Seqera. + * Copyright 2021-2026, Seqera. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -12,7 +12,6 @@ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - * */ package io.seqera.tower.agent; From 905f0d7064fa0bb546806844826ff94f43cb334d Mon Sep 17 00:00:00 2001 From: Cristian Ramon-Cortes Date: Mon, 23 Feb 2026 10:34:15 +0100 Subject: [PATCH 10/10] fix: Fix new license header setup for XML files [COMP-1266] --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index 454b272..fbd19ed 100644 --- a/build.gradle +++ b/build.gradle @@ -50,6 +50,7 @@ dependencies { license { rule(file('HEADER.txt')) exclude('**/*.properties') + exclude('**/*.xml') exclude('gradlew') }