This repository was archived by the owner on Mar 27, 2024. It is now read-only.
forked from gomorpheus/morpheus-phpipam-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
105 lines (86 loc) · 2.72 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
buildscript {
repositories {
mavenLocal()
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:6.0.0"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:$assetPipelineVersion"
}
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'asset-pipeline'
group = 'com.morpheusdata.phpipam'
sourceCompatibility = '1.11'
targetCompatibility = '1.11'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
repositories {
mavenLocal()
mavenCentral()
}
configurations {
provided
}
dependencies {
provided "com.morpheusdata:morpheus-plugin-api:0.14.3"
provided "org.codehaus.groovy:groovy-all:$groovyVersion"
implementation 'commons-beanutils:commons-beanutils:1.9.3'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation "org.slf4j:slf4j-parent:$slf4jVersion"
implementation 'commons-net:commons-net:3.6'
implementation 'commons-validator:commons-validator:1.7'
// Include morpheus-core and it's dependencies
testImplementation 'io.reactivex.rxjava2:rxjava:2.2.0'
testImplementation 'org.apache.httpcomponents:httpclient:4.5.3'
testImplementation 'org.apache.httpcomponents:httpcore:4.4.5'
testImplementation "org.slf4j:slf4j-parent:$slf4jVersion"
testImplementation "org.codehaus.groovy:groovy-all:$groovyVersion"
testImplementation 'net.bytebuddy:byte-buddy:1.9.3'
testImplementation 'org.objenesis:objenesis:2.6'
testImplementation "org.spockframework:spock-core:$spockVersion"
testImplementation 'cglib:cglib-nodep:3.2.12'
}
sourceSets {
main {
compileClasspath += configurations.provided
}
}
jar {
manifest {
attributes(
'Plugin-Class': 'com.morpheusdata.phpipam.PhpIpamPlugin',
'Plugin-Version': version,
'Morpheus-Name': '{php}IPAM',
'Morpheus-Organization': 'morpheus',
'Morpheus-Code': 'phpipam-plugin',
'Morpheus-Description': 'Plugin for {php}IPAM',
'Morpheus-Logo': 'assets/phpipam-black.svg',
'Morpheus-Logo-Dark': 'assets/phpipam-white.svg',
'Morpheus-Color': '#ffffff',
'Morpheus-Labels': 'Plugin, Networking, Network, phpIPAM',
'Morpheus-Repo': 'https://github.com/gomorpheus/morpheus-phpipam-plugin',
'Morpheus-Min-Appliance-Version': "6.0.4"
)
}
}
task(console, dependsOn: 'classes', type: JavaExec) {
main = 'groovy.ui.Console'
classpath = sourceSets.main.compileClasspath + sourceSets.main.runtimeClasspath
}
test {
testLogging {
exceptionFormat = 'full'
showStandardStreams = true
}
}
shadowJar {
// archiveFileName = "${baseName}-${version}.mpl"
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}
tasks.assemble.dependsOn tasks.shadowJar