blob: 47b6e653a31577fb220f1b1f85cfb611f38a63d5 [file] [log] [blame]
buildscript {
repositories {
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
}
}
plugins {
id 'maven-publish'
id 'idea'
id 'eclipse'
id 'signing'
id 'java-library'
}
apply plugin: 'signing'
apply plugin: "org.grails.grails-plugin"
apply plugin: "org.grails.grails-gsp"
version project.projectVersion
group "org.grails.plugins"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
}
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
configurations {
documentation.extendsFrom compileClasspath
all {
resolutionStrategy {
force 'org.apache.commons:commons-pool2:2.12.0'
}
}
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-logging'
implementation "org.springframework.boot:spring-boot-starter-actuator"
implementation "org.springframework.boot:spring-boot-autoconfigure"
implementation "org.springframework.boot:spring-boot-starter-tomcat"
implementation "org.grails:grails-web-boot"
implementation "org.grails:grails-dependencies"
testImplementation 'org.grails:grails-web-testing-support'
console "org.grails:grails-console"
api 'redis.clients:jedis:4.4.6'
api 'com.google.code.gson:gson:2.10.1'
documentation 'com.github.javaparser:javaparser-core:3.15.14'
}
groovydoc {
groovyClasspath += configurations.documentation
}
jar {
exclude "application.groovy"
exclude "src/test/projects/**"
}
publishing {
if (isSnapshot) {
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
url "https://repo.grails.org/grails/plugins3-snapshots-local"
}
}
}
publications {
maven(MavenPublication) {
groupId = project.group
version = project.version
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'Grails Redis Plugin'
description = 'This Plugin provides access to Redis and various utilities(service, annotations, etc) for caching.'
url = 'https://github.com/grails/grails-redis'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'ctoestreich'
name = 'Christian Oestreich'
}
developer {
id = 'puneetbehl'
name = 'Puneet Behl'
email = 'behlp@objectcomputing.com'
}
}
scm {
connection = 'scm:git:git://github.com/grails/grails-redis.git'
developerConnection = 'scm:git:ssh://github.com:/grails/grails-redis.git'
url = 'https://github.com/grails/grails-redis/'
}
}
}
}
}
if (isReleaseVersion) {
afterEvaluate {
signing {
sign publishing.publications.maven
}
}
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}