generated from remal/oss-template-java-gradle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·71 lines (58 loc) · 2.11 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
import build.collect.CollectGradleApiInfo
import build.collect.CollectGradleApiPlugin
import build.gradleApi.PublishGradleApiPlugin
import build.gradleTestKit.PublishGradleTestKitPlugin
import build.localGroovy.PublishLocalGroovyPlugin
import org.gradle.plugins.ide.idea.model.IdeaLanguageLevel
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
buildscript {
dependencies {
classpath 'gradle.plugin.org.jetbrains.gradle.plugin.idea-ext:gradle-idea-ext:1.1.9'
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
apply plugin: CollectGradleApiPlugin
apply plugin: PublishLocalGroovyPlugin
apply plugin: PublishGradleApiPlugin
apply plugin: PublishGradleTestKitPlugin
tasks.withType(CollectGradleApiInfo) {
it.version = project.findProperty('gradle-version') //?: '6.9-rc-1'
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
publishing {
repositories {
maven {
name = 'GitHub'
url = 'https://maven.pkg.github.com/remal-gradle-api/packages'
credentials {
username = System.getenv('PUBLISH_USER')
password = System.getenv('PUBLISH_PASSWORD')
}
}
}
}
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
apply plugin: 'idea'
apply plugin: 'org.jetbrains.gradle.plugin.idea-ext'
idea {
project {
jdkName = '8'
targetBytecodeVersion = JavaVersion.VERSION_1_8
languageLevel = new IdeaLanguageLevel(targetBytecodeVersion.majorVersion)
settings {
doNotDetectFrameworks('android', 'web', 'javaeeApplication', 'Spring', 'jpa', 'hibernate', 'AngularCLI')
encodings {
encoding = 'UTF-8'
bomPolicy = 'WITH_NO_BOM'
properties {
encoding = 'US-ASCII'
transparentNativeToAsciiConversion = true
}
}
delegateActions {
delegateBuildRunToGradle = true
testRunner = 'GRADLE'
}
}
}
}