forked from micronaut-projects/micronaut-grpc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
121 lines (92 loc) · 3.38 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
buildscript {
repositories {
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "org.grails:grails-docs:$grailsVersion"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
classpath 'io.github.groovylang.groovydoc:groovydoc-gradle-plugin:1.0.1'
}
}
plugins {
id 'com.github.hierynomus.license' version '0.14.0' apply false
}
repositories {
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
}
version project.projectVersion
ext {
distInstallDir = file("$buildDir/dist-tmp")
homeBinDir = file("bin")
homeLibDir = file("lib")
homeSrcDir = file("src")
}
subprojects { Project subproject ->
version project.projectVersion
group "io.micronaut.grpc"
ext {
isConfiguration = subproject.projectDir.parentFile.name == 'configurations'
isBuildSnapshot = version.toString().endsWith("-SNAPSHOT")
}
repositories {
mavenLocal()
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
maven { url "https://repo.grails.org/grails/core" }
}
apply plugin:"groovy"
apply plugin:"java"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
apply from:"https://raw.githubusercontent.com/micronaut-projects/micronaut-core/01e2b1ef1255b584e9e5c1965d334e1190e2ade5/gradle/publishing.gradle"
jar {
manifest {
attributes('Automatic-Module-Name': "${subproject.group}.${subproject.name}".replaceAll('[^\\w\\.\\$_]', "_"))
attributes('Implementation-Version': projectVersion)
attributes('Implementation-Title': title)
}
}
bintray.publish = true
tasks.withType(Test) {
jvmArgs '-Duser.country=US'
jvmArgs '-Duser.language=en'
testLogging {
exceptionFormat = 'full'
}
afterSuite {
System.out.print(".")
System.out.flush()
}
reports.html.enabled = !System.getenv("TRAVIS")
reports.junitXml.enabled = !System.getenv("TRAVIS")
}
configurations {
documentation
all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
String group = details.requested.group
if(group == 'org.codehaus.groovy') {
details.useVersion(groovyVersion)
}
if(group == 'org.ow2.asm') {
details.useVersion(asmVersion)
}
}
}
}
dependencies {
documentation "org.codehaus.groovy:groovy-templates:$groovyVersion"
documentation "org.codehaus.groovy:groovy-dateutil:$groovyVersion"
testCompile "cglib:cglib-nodep:2.2.2"
testCompile "org.objenesis:objenesis:1.4"
testRuntime "ch.qos.logback:logback-classic:1.2.3"
testCompile "org.codehaus.groovy:groovy-test:$groovyVersion"
}
groovydoc {
classpath += project.configurations.documentation
}
task allDeps(type: DependencyReportTask) {}
}
apply from:"https://raw.githubusercontent.com/micronaut-projects/micronaut-core/ae8c52a65b4315d0f36edf362295d645559f496e/gradle/docs.gradle"