forked from micronaut-projects/micronaut-mongodb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
132 lines (103 loc) · 3.79 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
121
122
123
124
125
126
127
128
129
130
131
buildscript {
repositories {
mavenLocal()
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'
classpath "io.micronaut.docs:micronaut-docs-asciidoc-extensions:$micronautDocsVersion"
classpath "io.micronaut.docs:micronaut-docs-gradle-plugins:$micronautDocsVersion"
}
}
plugins {
id 'com.github.hierynomus.license' version '0.15.0' apply false
}
repositories {
// mavenLocal()
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
}
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.configuration"
ext {
isConfiguration = subproject.projectDir.parentFile.name == 'configurations'
isBuildSnapshot = version.toString().endsWith("-SNAPSHOT")
}
repositories {
maven { url "https://repo.grails.org/grails/core" }
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
apply plugin:"groovy"
apply plugin:"java"
apply plugin: "io.spring.dependency-management"
dependencyManagement {
imports {
mavenBom "io.micronaut:micronaut-bom:$micronautVersion"
}
}
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)
}
}
}
}
dependencies {
documentation "org.codehaus.groovy:groovy-templates:$groovyVersion"
documentation "org.codehaus.groovy:groovy-dateutil:$groovyVersion"
testCompile "cglib:cglib-nodep:3.3.0"
testCompile "org.objenesis:objenesis:3.0.1"
testCompile("org.spockframework:spock-core:${spockVersion}") {
exclude module:'groovy-all'
}
testCompile "cglib:cglib-nodep:3.3.0"
testCompile "org.objenesis:objenesis:3.0.1"
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-docs/v1.0.0.M4/gradle/docs.gradle"