Skip to content

Commit f59c1b0

Browse files
author
Sajeer
committed
Updated the copyright years and removed unwanted comments
1 parent 77a1f5f commit f59c1b0

15 files changed

+15
-22
lines changed

src/main/groovy/io/openliberty/tools/gradle/Liberty.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2014, 2025.
2+
* (C) Copyright IBM Corporation 2014, 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/groovy/io/openliberty/tools/gradle/tasks/AbstractFeatureTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2021, 2024.
2+
* (C) Copyright IBM Corporation 2021, 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/groovy/io/openliberty/tools/gradle/tasks/AbstractServerTask.groovy

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1114,22 +1114,18 @@ abstract class AbstractServerTask extends AbstractLibertyTask {
11141114
Dependency depCopy = dep;
11151115

11161116
// In Gradle 9.0.0, we cannot modify dependencies after a configuration has been resolved
1117-
// Create a detached configuration with a copy of the dependency
11181117
Configuration detachedConfig;
11191118
if (dep instanceof ModuleDependency) { //Check that dep isn't a File dependency
1120-
// Create a copy of the dependency that we can modify
11211119
ModuleDependency moduleDep = (ModuleDependency) dep;
11221120
ModuleDependency depClone = moduleDep.copy();
1123-
depClone.setTransitive(false); //Only want main artifacts, one for Maven and one or more for Gradle/Ivy dependencies
1121+
depClone.setTransitive(false);
11241122
detachedConfig = project.configurations.detachedConfiguration(depClone);
11251123
depCopy = depClone;
11261124
} else {
11271125
detachedConfig = project.configurations.detachedConfiguration(dep);
11281126
}
11291127

11301128
// In Gradle 9.0.0, the files(dep) method on configurations is no longer supported for dependency objects.
1131-
// Using detachedConfiguration(dep) creates an isolated configuration just for this dependency,
1132-
// and resolve() returns the set of files that make up the artifacts.
11331129
Set<File> depArtifacts = detachedConfig.resolve() //Resolve the artifacts
11341130
for (File depArtifact : depArtifacts) {
11351131
File appFile = depArtifact

src/main/groovy/io/openliberty/tools/gradle/tasks/DeployTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2014, 2025.
2+
* (C) Copyright IBM Corporation 2014, 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/groovy/io/openliberty/tools/gradle/tasks/InstallLibertyTask.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2014, 2025.
2+
* (C) Copyright IBM Corporation 2014, 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/groovy/io/openliberty/tools/gradle/tasks/StartTask.groovy

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2014, 2025.
2+
* (C) Copyright IBM Corporation 2014, 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -36,7 +36,6 @@ class StartTask extends AbstractServerTask {
3636

3737
@TaskAction
3838
void start() {
39-
// Clean up force-stopped marker file if it exists
4039
ServerUtils.cleanupForceStoppedMarker(getServerDir(project), logger);
4140

4241
ServerTask serverTaskStart = createServerTask(project, "start");

src/main/groovy/io/openliberty/tools/gradle/tasks/StopTask.groovy

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2014, 2025.
2+
* (C) Copyright IBM Corporation 2014, 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -33,7 +33,6 @@ class StopTask extends AbstractServerTask {
3333
void stop() {
3434
File serverDir = getServerDir(project)
3535

36-
// Clean up force-stopped marker file if it exists (since this is a normal stop)
3736
ServerUtils.cleanupForceStoppedMarker(getServerDir(project), logger)
3837

3938
if (isLibertyInstalledAndValid(project)) {
@@ -45,7 +44,6 @@ class StopTask extends AbstractServerTask {
4544
serverTaskStop.setUseEmbeddedServer(server.embedded)
4645
serverTaskStop.execute()
4746

48-
// Verify server is fully stopped and resources are released
4947
if (!ServerUtils.verifyServerFullyStopped(serverDir, logger)) {
5048
// If normal stop verification fails, try forced cleanup
5149
ServerUtils.forceCleanupServerResources(serverDir, logger)

src/main/groovy/io/openliberty/tools/gradle/utils/DevTaskHelper.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2024, 2025.
2+
* (C) Copyright IBM Corporation 2024, 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/groovy/io/openliberty/tools/gradle/utils/GradleUtils.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* (C) Copyright IBM Corporation 2025.
2+
* (C) Copyright IBM Corporation 2026.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

src/main/groovy/io/openliberty/tools/gradle/utils/LooseEarApplication.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* (C) Copyright IBM Corporation 2018, 2025
2+
* (C) Copyright IBM Corporation 2018, 2026
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)