Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ale5000-git committed Aug 30, 2023
1 parent 930d754 commit 715ba58
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,9 @@ plugins {
//id 'com.github.spotbugs' version '4.7.6'
}

gradleEnterprise.buildScan {
termsOfServiceUrl 'https://gradle.com/terms-of-service'
termsOfServiceAgree 'yes'
publishAlwaysIf System.getenv('UPLOAD_BUILD_SCAN') != null
}
/* ===FUNCTIONS=== */

private void configure() {
private void initialize() {
println name

rootProject.buildDir = "${projectDir}/output"
Expand All @@ -43,7 +39,6 @@ private void configure() {
throw new GradleException('This require Java 11 or later')
}
}
configure()

private String getOurArchivesBaseName()
{
Expand All @@ -54,10 +49,22 @@ private String getOurArchivesBaseName()
return "${val}"
}

initialize()

/* ===BLOCKS=== */

gradleEnterprise.buildScan {
termsOfServiceUrl 'https://gradle.com/terms-of-service'
termsOfServiceAgree 'yes'
publishAlwaysIf System.getenv('UPLOAD_BUILD_SCAN') != null
}

base {
archivesName = getOurArchivesBaseName()
}

/* ==TASKS=== */

tasks.register('cleanCache', Delete) {
delete "${projectDir}/cache"
}
Expand Down

0 comments on commit 715ba58

Please sign in to comment.