File tree 1 file changed +3
-18
lines changed 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -17,16 +17,10 @@ repositories {
17
17
}
18
18
}
19
19
20
- configurations {
21
- api
22
- implementation. extendsFrom api
23
- }
24
-
25
20
dependencies {
26
21
implementation localGroovy()
27
22
28
- // needed at runtime, see copyApi
29
- api ' com.github.hauner.openapi:openapi-generatr-api:1.0.0.B1'
23
+ compileOnly ' com.github.hauner.openapi:openapi-generatr-api:1.0.0.B1'
30
24
31
25
testImplementation (' org.spockframework:spock-core:1.3-groovy-2.5' ) {
32
26
// avoid conflict with localGroovy()
@@ -42,10 +36,10 @@ testSets {
42
36
43
37
check. dependsOn testInt
44
38
45
- // copy classes of api dependencies to build/classes so they are included in the plugin jar
39
+ // avoid runtime dependency on the generatr-api by merging it into the plugin jar
46
40
task copyApi (type : Copy ) {
47
41
from {
48
- configurations. api . collect { zipTree (it) }
42
+ configurations. compileOnly . collect { zipTree (it) }
49
43
}
50
44
into (" $buildDir /classes/groovy/main" )
51
45
include (' **/*.class' )
@@ -55,15 +49,6 @@ compileJava {
55
49
compileJava. dependsOn (' copyApi' )
56
50
}
57
51
58
- // jar {
59
- // dependsOn (configurations.api)
60
- //
61
- // with copySpec {
62
- // from {
63
- // configurations.api.collect { zipTree(it) }
64
- // }
65
- // }
66
- // }
67
52
68
53
gradlePlugin {
69
54
plugins {
You can’t perform that action at this time.
0 commit comments