File tree Expand file tree Collapse file tree 2 files changed +13
-9
lines changed 
Location-based-target-authentication Expand file tree Collapse file tree 2 files changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -4,9 +4,15 @@ WORKDIR /app
44COPY  . .
55WORKDIR  /app/Location-based-target-authentication
66
7- #  Skip clean task and run assemble directly
8- RUN  chmod +x ./gradlew && \
9-     ./gradlew assemble -x test -x clean --build-cache --parallel
7+ #  Create a custom build script
8+ COPY  <<EOF /app/build.sh
9+ # !/bin/bash
10+ cd /app/Location-based-target-authentication
11+ chmod +x ./gradlew
12+ ./gradlew bootJar -x test --build-cache --parallel
13+ EOF
14+ 
15+ RUN  chmod +x /app/build.sh && /app/build.sh
1016
1117FROM  cloudtype/jre:17
1218WORKDIR  /app
Original file line number Diff line number Diff line change @@ -74,11 +74,9 @@ tasks.withType(Jar) {
7474	duplicatesStrategy =  DuplicatesStrategy . EXCLUDE 
7575}
7676
77- task clean  {
78-     doLast {
79-         delete fileTree(dir : projectDir) {
80-             include ' **/*.class' 
81-         }
82-         delete ' build' 
77+ clean  {
78+     delete layout. buildDirectory
79+     delete fileTree(dir : projectDir) {
80+         include ' **/*.class' 
8381    }
8482}
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments