File tree 2 files changed +35
-52
lines changed
src/main/groovy/com/github/hauner/openapi/api
2 files changed +35
-52
lines changed Original file line number Diff line number Diff line change @@ -6,17 +6,28 @@ plugins {
6
6
}
7
7
8
8
group ' com.github.hauner.openapi'
9
- version ' 0. 1.0'
9
+ version ' 1.0.0.B1 '
10
10
11
11
targetCompatibility = JavaVersion . VERSION_1_8
12
12
13
13
repositories {
14
14
mavenCentral()
15
+ maven {
16
+ url " https://dl.bintray.com/hauner/openapi-generatr"
17
+ }
18
+ }
19
+
20
+ configurations {
21
+ api
22
+ implementation. extendsFrom api
15
23
}
16
24
17
25
dependencies {
18
26
implementation localGroovy()
19
27
28
+ // needed at runtime, see copyApi
29
+ api ' com.github.hauner.openapi:openapi-generatr-api:1.0.0.B1'
30
+
20
31
testImplementation (' org.spockframework:spock-core:1.3-groovy-2.5' ) {
21
32
// avoid conflict with localGroovy()
22
33
exclude group : ' org.codehaus.groovy'
@@ -31,6 +42,29 @@ testSets {
31
42
32
43
check. dependsOn testInt
33
44
45
+ // copy classes of api dependencies to build/classes so they are included in the plugin jar
46
+ task copyApi (type : Copy ) {
47
+ from {
48
+ configurations. api. collect { zipTree (it) }
49
+ }
50
+ into (" $buildDir /classes/groovy/main" )
51
+ include (' **/*.class' )
52
+ }
53
+
54
+ compileJava {
55
+ compileJava. dependsOn (' copyApi' )
56
+ }
57
+
58
+ // jar {
59
+ // dependsOn (configurations.api)
60
+ //
61
+ // with copySpec {
62
+ // from {
63
+ // configurations.api.collect { zipTree(it) }
64
+ // }
65
+ // }
66
+ // }
67
+
34
68
gradlePlugin {
35
69
plugins {
36
70
generatrPlugin {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments