Skip to content

Commit

Permalink
Clean Gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
jelovirt committed Dec 21, 2024
1 parent ce22a9d commit 3e071f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
java-version: 17
cache: gradle
- name: Build with Gradle
run: ./gradlew dist
run: ./gradlew test dist
- name: Set variables
run: |
echo "CHKSUM=$(shasum -a 256 build/distributions/com.elovirta.pdf-*.zip | cut -d ' ' -f 1)" >> $GITHUB_ENV
Expand Down
11 changes: 6 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ sourceCompatibility = 17
targetCompatibility = 17

dependencies {
implementation group: 'org.apache.ant', name: 'ant', version:'1.10.12'
implementation group: 'org.apache.ant', name: 'ant', version: '1.10.12'
implementation(group: 'com.google.guava', name: 'guava', version: '25.1-jre') {
exclude group: 'org.checkerframework', module: 'checker-qual'
exclude group: 'org.codehaus.mojo', module: 'animal-sniffer-annotations'
Expand Down Expand Up @@ -44,18 +44,19 @@ sourceSets {
}
}

task dist(type: Zip, dependsOn: [jar]) {
tasks.register('dist', Zip) {
dependsOn tasks.jar
into("lib") {
from ("build/libs") {
from("build/libs") {
include "*.jar"
}
}
into("") {
from ("src/main/resources") {
from("src/main/resources") {
include "build.xml"
include "schema.json"
}
from ("src/main/resources") {
from("src/main/resources") {
expand(
id: project.name,
version: project.version
Expand Down

0 comments on commit 3e071f8

Please sign in to comment.