-
Notifications
You must be signed in to change notification settings - Fork 24
/
build.gradle
96 lines (82 loc) · 2.51 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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://jcenter.bintray.com/" }
}
dependencies {
}
}
plugins {
id("net.researchgate.release") version "2.8.1"
id("org.jetbrains.intellij") version "0.7.3"
}
subprojects {
repositories {
mavenLocal()
mavenCentral()
maven {
url "https://central.maven.org/maven2/"
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url "https://repository.mulesoft.org/releases/"
}
maven {
url "https://repository.mulesoft.org/snapshots/"
}
maven {
url "https://repository.mulesoft.org/nexus/content/repositories/releases"
}
}
apply plugin: 'java'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
tasks.withType(JavaCompile) { options.encoding = 'UTF-8' }
group = 'org.mule.tooling.intellij'
task jarSources(type:Jar) {
from sourceSets.main.allSource
archiveClassifier.set 'sources'
}
assemble.dependsOn jarSources
apply plugin: 'org.jetbrains.intellij'
intellij {
version = ideaVersion
updateSinceUntilBuild = false
downloadSources = true
buildSearchableOptions.enabled = false
plugins = ['com.intellij.java']
}
publishPlugin {
username System.getenv('IJ_REPO_USERNAME')
password System.getenv('IJ_REPO_PASSWORD')
}
dependencies {
testImplementation 'junit:junit:4.+'
compileOnly 'org.jetbrains:annotations:21.0.0'
}
}
clean {
delete rootProject.buildDir
}
release {
buildTasks = ['doRelease']
// Do not change the tagTemplate value to double quotes or the version will be evaluated before
// the SNAPSHOT version is updated to the release version.
tagTemplate = 'v$version'
git {
requireBranch = /^release_v\d+.*$/
}
}
// We aren't building or doing anything interesting for release.
// We just update the version and generate the tag as CI will handle deployment.
task doRelease {
doLast {
println '===============================!!PLEASE READ!!=================================\n\n' +
'IMPORTANT: The release command will trigger the creation of a new release ' +
'in Github, the uploading of binaries to github, and the publishing of our plugin' +
'to the IntelliJ plugin repository.\n' +
'Hit CTRL+C to cancel.\n'
}
}