Skip to content

Commit 62079aa

Browse files
committed
fix: Remove custom clean task and use Java plugin's clean task
1 parent 8b6ec7f commit 62079aa

File tree

2 files changed

+2
-11
lines changed

2 files changed

+2
-11
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY . .
55
WORKDIR /app/Location-based-target-authentication
66

77
RUN chmod +x ./gradlew
8-
RUN ./gradlew bootJar -x test --build-cache --parallel
8+
RUN ./gradlew bootJar -x test -x clean --build-cache --parallel
99

1010
FROM cloudtype/jre:17
1111
WORKDIR /app

Location-based-target-authentication/build.gradle

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ plugins {
22
id 'java'
33
id 'org.springframework.boot' version '3.2.2'
44
id 'io.spring.dependency-management' version '1.1.7'
5-
id 'base'
6-
id 'lifecycle-base'
75
}
86

97
group = 'com.swyp'
@@ -75,11 +73,4 @@ tasks.withType(Jar) {
7573
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
7674
}
7775

78-
tasks.named('clean') {
79-
doLast {
80-
delete layout.buildDirectory
81-
delete fileTree(dir: projectDir) {
82-
include '**/*.class'
83-
}
84-
}
85-
}
76+

0 commit comments

Comments
 (0)