forked from micronaut-projects/micronaut-oracle-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (50 loc) · 1.91 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
buildscript {
repositories {
gradlePluginPortal()
jcenter()
maven { url "https://dl.bintray.com/micronaut/core-releases-local" }
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "io.micronaut.build:micronaut-gradle-plugins:2.0.8"
classpath "io.micronaut.gradle:micronaut-gradle-plugin:1.0.0.M9"
}
}
subprojects { Project subproject ->
group "io.micronaut.oci"
if (subproject.name == 'oci-bom') {
apply plugin: "java-platform"
version projectVersion
} else if (subproject.parent.name == "docs-examples" || subproject.name == "docs-examples") {
repositories {
jcenter()
mavenCentral()
}
return
} else {
apply plugin: "io.micronaut.build.common"
dependencies {
api platform("com.oracle.oci.sdk:oci-java-sdk-bom:$ociVersion")
testImplementation("io.micronaut.test:micronaut-test-junit5")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
testAnnotationProcessor "io.micronaut:micronaut-inject-java"
}
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.compilerArgs.addAll([
'-parameters',
// enables incremental compilation
'-Amicronaut.processing.incremental=true',
'-Amicronaut.processing.annotations=io.micronaut.oci.*',
"-Amicronaut.processing.group=$project.group",
"-Amicronaut.processing.module=$project.name",
])
}
}
apply plugin: "io.micronaut.build.dependency-updates"
if (subproject.name != 'oci-sdk-processor') {
apply plugin: "io.micronaut.build.publishing"
}
}
apply plugin: "io.micronaut.build.docs"
apply plugin: "io.micronaut.build.dependency-updates"