-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
132 lines (112 loc) · 4.55 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
132
/*******************************************************************************
* Copyright 2017-2023 Open Text.
*
* The only warranties for products and services of Open Text and
* its affiliates and licensors ("Open Text") are as may be set forth
* in the express warranty statements accompanying such products and services.
* Nothing herein should be construed as constituting an additional warranty.
* Open Text shall not be liable for technical or editorial errors or
* omissions contained herein. The information contained herein is subject
* to change without notice.
*
* Except as specifically indicated otherwise, this document contains
* confidential information and a valid license is required for possession,
* use or copying. If this work is provided to the U.S. Government,
* consistent with FAR 12.211 and 12.212, Commercial Computer Software,
* Computer Software Documentation, and Technical Data for Commercial Items are
* licensed to the U.S. Government under vendor's standard commercial license.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
******************************************************************************/
plugins {
id 'java'
id 'org.jetbrains.intellij' version '1.17.0'
id 'org.openjfx.javafxplugin' version '0.1.0'
}
project.group = projectGroup
project.version = projectVersion
repositories {
mavenLocal()
mavenCentral()
maven {
url 'https://nexus.octane.admlabs.aws.swinfra.net/nexus/content/repositories/mqm-all'
allowInsecureProtocol = true
}
}
clean.doLast {
file('.sandbox').deleteDir()
}
sourceSets {
main {
java.srcDir 'src/main/java'
resources.srcDir 'src/main/resources'
}
test {
java.srcDir 'src/test/java'
resources.srcDir 'src/test/resources'
}
}
dependencies {
implementation("com.hpe.adm.octane.ideplugins:octane-plugin-common:$commonVersion") {
exclude group: 'org.slf4j', module: 'slf4j-api'
}
//use javafx modules only at compile time based on the current OS
def javaFxVersion = '17.0.11'
def javaFxModules = ['graphics', 'swing', 'base', 'web']
def currentOS = org.gradle.internal.os.OperatingSystem.current()
def platform
if (currentOS.isWindows()) {
platform = 'win'
} else if (currentOS.isLinux()) {
platform = 'linux'
} else if (currentOS.isMacOsX()) {
platform = 'mac'
}
javaFxModules.each { module ->
compileOnly "org.openjfx:javafx-${module}:${javaFxVersion}:${platform}"
}
implementation group: 'org.jsoup', name: 'jsoup', version: '1.8.3'
implementation('com.google.inject:guice:4.0') {
exclude group: 'com.google.guava', module: 'guava'
}
implementation('com.google.inject.extensions:guice-multibindings:4.0') {
exclude group: 'com.google.guava', module: 'guava'
}
testImplementation group: 'junit', name: 'junit', version: '4.11'
}
intellij {
plugins = ['com.intellij.java']
version = project.hasProperty("intellijVersion") ? project.getProperty("intellijVersion") : ideaVersion
//to debug the plugin on other platforms comment out alternativeIdePath and set the path to the installation
//folder of the IDE
//alternativeIdePath 'C:\\DevTools\\PyCharm Community Edition 2018.2.1'
plugins = ["maven", "gradle"]
pluginName = project.hasProperty('zipname') ? project.getProperty('zipname') : "Core Software Delivery Platform IntelliJ Plugin"
updateSinceUntilBuild = false
downloadSources = true
sandboxDir = project.rootDir.canonicalPath + "/.sandbox"
}
tasks.withType(JavaExec) {
jvmArgs '--add-exports', 'java.base/jdk.internal.vm=ALL-UNNAMED'
if (System.getProperty('DEBUG', 'false') == 'true') {
jvmArgs '-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=9099'
}
}
tasks.processResources {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
task copyDependencies(type: Copy) {
from configurations.runtimeClasspath
into project.rootDir.canonicalPath + '/build/stat'
}
configurations.all {
exclude module: 'logback-classic-1.2.3'
}