Skip to content
Snippets Groups Projects
Commit b0a018c6 authored by dgelessus's avatar dgelessus
Browse files

Ignore duplicates in sourcesJar

parent 7eb5987d
No related branches found
No related tags found
No related merge requests found
Pipeline #139337 passed
image: eclipse-temurin:8 image: eclipse-temurin:8
variables: variables:
GRADLE_ARGS: --no-daemon --warning-mode=all GRADLE_ARGS: --no-daemon --stacktrace --warning-mode=all
GRADLE_USER_HOME: "$CI_PROJECT_DIR/.gradle" GRADLE_USER_HOME: "$CI_PROJECT_DIR/.gradle"
cache: cache:
......
...@@ -53,6 +53,8 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword') ...@@ -53,6 +53,8 @@ if (project.hasProperty('ossrhUsername') && project.hasProperty('ossrhPassword')
task sourcesJar(type: Jar) { task sourcesJar(type: Jar) {
classifier = 'sources' classifier = 'sources'
from sourceSets.main.allSource from sourceSets.main.allSource
// Ignore duplicates because the same directory is used for sources and resources.
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
} }
artifacts { artifacts {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment