forked from machaval/mule-intellij-plugins
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
91 lines (80 loc) · 2.46 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
buildscript {
repositories {
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'gradle.plugin.org.jetbrains:gradle-intellij-plugin:0.0.43'
}
}
plugins {
id 'net.researchgate.release' version '2.3.4'
}
subprojects {
repositories {
mavenLocal()
mavenCentral()
maven {
url "http://central.maven.org/maven2/"
}
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots'
}
maven {
url "https://repository.mulesoft.org/releases/"
}
maven {
url "http://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
classifier = 'sources'
}
assemble.dependsOn jarSources
apply plugin: 'org.jetbrains.intellij'
intellij {
// version = ideaVersion
updateSinceUntilBuild = false
downloadSources = true
sandboxDirectory = "${rootProject.buildDir}/idea-sandbox"
publish {
username System.getenv('IJ_REPO_USERNAME')
password System.getenv('IJ_REPO_PASSWORD')
//channel ijPluginRepoChannel
}
}
dependencies {
testCompile 'junit:junit:4.+'
}
}
task clean(type: Delete) {
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'
}
}