| buildscript { | |
| ext { | |
| grailsVersion = project.grailsVersion | |
| } | |
| repositories { | |
| mavenLocal() | |
| maven { url "https://repo.grails.org/grails/core" } | |
| } | |
| dependencies { | |
| classpath "org.grails:grails-gradle-plugin:$grailsVersion" | |
| } | |
| } | |
| plugins { | |
| id "io.spring.dependency-management" version "0.6.1.RELEASE" | |
| id "com.jfrog.bintray" version "1.1" | |
| } | |
| apply plugin: 'maven-publish' | |
| apply plugin: 'eclipse' | |
| apply plugin: 'idea' | |
| apply plugin: "spring-boot" | |
| apply plugin: "org.grails.grails-plugin" | |
| apply plugin: "org.grails.grails-gsp" | |
| apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle' | |
| ext { | |
| grailsVersion = project.grailsVersion | |
| gradleWrapperVersion = project.gradleWrapperVersion | |
| } | |
| version "2.0.5" | |
| group "org.grails.plugins" | |
| sourceCompatibility = 1.7 | |
| targetCompatibility = 1.7 | |
| repositories { | |
| mavenLocal() | |
| mavenCentral() | |
| jcenter() | |
| maven { url "https://repo.grails.org/grails/core" } | |
| maven { url "http://repo.spring.io/milestone/" } | |
| maven { url "http://oss.sonatype.org/content/repositories/snapshots" } | |
| } | |
| dependencyManagement { | |
| imports { | |
| mavenBom "org.grails:grails-bom:$grailsVersion" | |
| } | |
| applyMavenExclusions false | |
| } | |
| dependencies { | |
| provided 'org.springframework.boot:spring-boot-starter-logging' | |
| provided "org.springframework.boot:spring-boot-starter-actuator" | |
| provided "org.springframework.boot:spring-boot-autoconfigure" | |
| provided "org.springframework.boot:spring-boot-starter-tomcat" | |
| provided "org.grails:grails-web-boot" | |
| provided "org.grails:grails-dependencies" | |
| provided 'javax.servlet:javax.servlet-api:3.1.0' | |
| testCompile "org.grails:grails-plugin-testing" | |
| console "org.grails:grails-console" | |
| compile 'redis.clients:jedis:2.9.0' | |
| compile 'com.google.code.gson:gson:2.6.1' | |
| } | |
| task wrapper(type: Wrapper) { | |
| gradleVersion = gradleWrapperVersion | |
| } | |
| jar { | |
| exclude "application.groovy" | |
| exclude "src/test/projects/**" | |
| } | |
| bintray { | |
| user = System.getenv("BINTRAY_USER") ?: project.hasProperty("bintrayUser") ? project.bintrayUser : '' | |
| key = System.getenv("BINTRAY_KEY") ?: project.hasProperty("bintrayKey") ? project.bintrayKey : '' | |
| publications = ['maven'] | |
| pkg { | |
| repo = 'grails-plugins' | |
| userOrg = 'ctoestreich' | |
| name = "redis" | |
| desc = "Grails Redis plugin" | |
| websiteUrl = "http://grails.org/plugin/redis" | |
| issueTrackerUrl = "https://github.com/grails-plugins/grails-redis/issues" | |
| vcsUrl = "https://github.com/grails-plugins/grails-redis" | |
| licenses = ['Apache-2.0'] | |
| publicDownloadNumbers = true | |
| } | |
| } | |
| bintrayUpload.dependsOn sourcesJar, javadocJar | |