Skip to content

Commit

Permalink
Delete unused files and configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
tttol committed Jan 30, 2024
1 parent c754981 commit 1a9afdd
Show file tree
Hide file tree
Showing 31 changed files with 41 additions and 7 deletions.
16 changes: 16 additions & 0 deletions app/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM public.ecr.aws/sam/build-java17:1.108.0-20240123221230 as build-image
WORKDIR "/task"
COPY src src/
COPY gradle gradle/
COPY gradlew ./
COPY gradlew.bat ./
COPY build.gradle ./
COPY settings.gradle ./
RUN ./gradlew clean assemble

FROM public.ecr.aws/docker/library/amazoncorretto:17.0.10-alpine3.19
COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.8.1 /lambda-adapter /opt/extensions/lambda-adapter
EXPOSE 8080
WORKDIR /opt
COPY --from=build-image /task/build/libs/mrls-2.0.0.jar /opt
CMD ["java", "-jar", "mrls-2.0.0.jar"]
23 changes: 21 additions & 2 deletions build.gradle → app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.1'
id 'org.springframework.boot' version '3.2.2'
id 'io.spring.dependency-management' version '1.1.0'
}

group = 'io.github.tttol'
version = "1.1.6"
version = "2.0.0"
sourceCompatibility = '17'

configurations {
Expand All @@ -32,3 +32,22 @@ dependencies {
tasks.named('test') {
useJUnitPlatform()
}

// sourceSets {
// main {
// java {
// srcDirs = ['app/src/main/java']
// resources {
// srcDirs = ['app/src/main/resources']
// }
// }
// }
// test {
// java {
// srcDirs = ['app/src/test/java']
// resources {
// srcDirs = ['app/src/test/resources']
// }
// }
// }
// }
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
app:
gitlab:
host: ${GITLAB_HOST}
host: host
project:
id: ${GITLAB_PROJECT_ID}
accessToken: ${GITLAB_ACCESS_TOKEN}
id: id
accessToken: token
api:
endpoint: https://${app.gitlab.host}/api/v4/projects/${app.gitlab.project.id}/merge_requests?state=opened
logging:
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion version.properties

This file was deleted.

0 comments on commit 1a9afdd

Please sign in to comment.