1+ buildscript {
2+ ext {
3+ grailsVersion = project. grailsVersion
4+ }
5+ repositories {
6+ mavenLocal()
7+ maven { url " https://repo.grails.org/grails/core" }
8+ }
9+ dependencies {
10+ classpath " org.grails:grails-gradle-plugin:$grailsVersion "
11+ }
12+ }
13+
14+ plugins {
15+ id " io.spring.dependency-management" version " 0.5.4.RELEASE"
16+ id " com.jfrog.bintray" version " 1.2"
17+ }
18+
19+ version " 2.0.0"
20+ group " org.grails.plugins"
21+
22+ apply plugin : ' maven-publish'
23+ apply plugin : ' eclipse'
24+ apply plugin : ' idea'
25+ apply plugin : " spring-boot"
26+ apply plugin : " org.grails.grails-plugin"
27+ apply plugin : " org.grails.grails-gsp"
28+ apply plugin : " jacoco"
29+ // Used for publishing to central repository, remove if not needed
30+ apply from :' https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
31+ apply from :' https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
32+
33+ ext {
34+ grailsVersion = project. grailsVersion
35+ gradleWrapperVersion = project. gradleWrapperVersion
36+ }
37+
38+ sourceCompatibility = 1.7
39+ targetCompatibility = 1.7
40+
41+ repositories {
42+ mavenLocal()
43+ mavenCentral()
44+ maven { url " https://repo.grails.org/grails/core" }
45+ }
46+
47+ dependencyManagement {
48+ imports {
49+ mavenBom " org.grails:grails-bom:$grailsVersion "
50+ }
51+ applyMavenExclusions false
52+ }
53+
54+ dependencies {
55+
56+ compile ' org.jsoup:jsoup:1.8.1'
57+ compile ' org.grails:grails-datastore-rest-client:5.0.0.RC2'
58+
59+ provided ' org.springframework.boot:spring-boot-starter-logging'
60+ provided " org.springframework.boot:spring-boot-starter-actuator"
61+ provided " org.springframework.boot:spring-boot-autoconfigure"
62+ provided " org.springframework.boot:spring-boot-starter-tomcat"
63+
64+ provided " org.grails:grails-web-boot"
65+ provided " org.grails:grails-dependencies"
66+ provided ' javax.servlet:javax.servlet-api:3.1.0'
67+
68+ testCompile " org.grails:grails-plugin-testing"
69+
70+ console " org.grails:grails-console"
71+ }
72+
73+ jar {
74+ exclude " mailgun/demo/**" ,
75+ " **.gsp" ,
76+ " gsp**" ,
77+ " gsp/" ,
78+ " layouts/"
79+ }
80+
81+ task wrapper (type : Wrapper ) {
82+ gradleVersion = gradleWrapperVersion
83+ }
84+
85+ // jacoco config
86+ jacocoTestReport {
87+ executionData test
88+ }
89+
90+ jacocoTestReport. dependsOn test
91+
92+ // Publish
93+ bintray {
94+ pkg {
95+ userOrg = ' orkonano' // If you want to publish to an organization
96+ name = " $project . name "
97+ repo = ' grails-plugin'
98+ issueTrackerUrl = " https://github.com/orkonano/grails-mailgun/issues"
99+ vcsUrl = " https://github.com/orkonano/grails-mailgun"
100+ version {
101+ attributes = [' grails-plugin' : " $project . group :$project . name " ]
102+ name = project. version
103+ }
104+ }
105+ }
0 commit comments