Skip to content

Commit

Permalink
Cleanup build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Apr 27, 2024
1 parent 217f544 commit 3ebf905
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ buildscript {
maven { url 'https://repo.gradle.org/gradle/libs-releases' }
}
dependencies {
// classpath "org.graceframework:grace-gradle-plugin:$graceVersion"
classpath "io.github.gradle-nexus:publish-plugin:1.3.0"
}
}
Expand All @@ -16,30 +15,30 @@ ext."signing.password" = project.hasProperty("signing.password") ? project.getPr
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : ("${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg")
ext.isReleaseVersion = !projectVersion.endsWith("SNAPSHOT")

ext {
springBootVersion = '2.6.6'
servletVersion = '4.0.1'
}

version projectVersion
group "org.graceframework.plugins"

apply plugin: "eclipse"
apply plugin: "idea"
apply plugin: "groovy"
// apply plugin: "java-library"
// apply plugin: "org.graceframework.grace-plugin"
apply plugin: "io.github.gradle-nexus.publish-plugin"
apply plugin: "maven-publish"
apply plugin: "signing"

repositories {
// mavenLocal()
mavenCentral()
}

dependencies {
compileOnly "org.springframework.boot:spring-boot-autoconfigure:2.6.6"
compileOnly "javax.servlet:javax.servlet-api:4.0.1"
// compileOnly "org.graceframework:grace-boot:$graceVersion"
compileOnly "org.springframework.boot:spring-boot-autoconfigure:$springBootVersion"
compileOnly "javax.servlet:javax.servlet-api:$servletVersion"
compileOnly "org.graceframework:grace-core:$graceVersion"
compileOnly "org.graceframework:grace-web-common:$graceVersion"
// profile "org.graceframework.profiles:plugin"
}

tasks.withType(Sign) {
Expand All @@ -56,8 +55,6 @@ tasks.withType(Test) {
useJUnitPlatform()
}

// bootJar.enabled = false

java {
toolchain {
languageVersion = JavaLanguageVersion.of(8)
Expand Down

0 comments on commit 3ebf905

Please sign in to comment.