Skip to content

Commit

Permalink
Fix IDEA sourceSets
Browse files Browse the repository at this point in the history
  • Loading branch information
ak-git committed Dec 6, 2023
1 parent ee7a3ee commit a7bcdf6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM openjdk:20
# Create a new app directory for my application files
RUN mkdir /app

ENV JAR_TO_COPY=SimpleSpringApp-2023.12.03.jar
ENV JAR_TO_COPY=SimpleSpringApp-2023.12.06.jar
# Copy the app files from host machine to image filesystem
COPY build/libs/${JAR_TO_COPY} /app

Expand Down
16 changes: 11 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
id 'idea'
id "org.sonarqube" version '4.4.1.3373'
id 'jacoco'
id "com.github.spotbugs" version '6.0.1'
id "com.github.spotbugs" version '6.0.2'
id 'org.springframework.boot' version '3.2.0'
id 'io.spring.dependency-management' version '1.1.4'

Expand Down Expand Up @@ -52,8 +52,16 @@ wrapper {

allprojects {
group = 'com.ak'
version = '2023.12.03'
version = '2023.12.06'
apply plugin: 'idea'
idea {
module {
inheritOutputDirs = true
}
}
sourceSets {
main.output.resourcesDir = main.java.classesDirectory
}

apply plugin: 'java'
apply plugin: 'java-library'
Expand All @@ -66,9 +74,7 @@ allprojects {
repositories {
mavenCentral()
mavenLocal()
maven {
url = 'https://plugins.gradle.org/m2/'
}
gradlePluginPortal()
}

jacocoTestReport {
Expand Down

0 comments on commit a7bcdf6

Please sign in to comment.