File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -339,7 +339,7 @@ dependencies {
339
339
println " \t + adding nativescript runtime package dependency: $runtime "
340
340
project. dependencies. add(" implementation" , [name : runtime, ext : " aar" ])
341
341
} else {
342
- implementation project(path : ' :runtime' , configuration : ' default ' )
342
+ implementation project(' :runtime' )
343
343
}
344
344
345
345
}
@@ -475,12 +475,17 @@ task extractAllJars {
475
475
def buildType = project. selectedBuildType == " release" ? " Release" : " Debug"
476
476
def iter = []
477
477
Pattern pattern = Pattern . compile(" ^(.+)${ buildType} CompileClasspath\$ " )
478
+ def artifactType = Attribute . of(' artifactType' , String )
478
479
configurations. all { config ->
479
480
Matcher matcher = pattern. matcher(config. name)
480
481
if (matcher. find() || config. name == " ${ buildType.toLowerCase()} CompileClasspath" ) {
481
- config. resolve(). each {
482
- if (! iter. contains(it)) {
483
- iter. push(it)
482
+ config. incoming. artifactView {
483
+ attributes {
484
+ it. attribute(artifactType, ' jar' )
485
+ }
486
+ }. artifacts. each {
487
+ if (! iter. contains(it. file)) {
488
+ iter. push(it. file)
484
489
}
485
490
}
486
491
}
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ project.ext._buildToolsVersion = "28.0.3"
25
25
android {
26
26
sourceSets {
27
27
main {
28
- def defaultSrcPath = " src/main/java" ;
28
+ def defaultSrcPath = " src/main/java"
29
29
def bindingGeneratorSourcePath = new File (project(" :runtime-binding-generator" ). projectDir, defaultSrcPath)
30
30
31
- // embedd runtime binding generator in runtime, while keeping it in a sperate project
31
+ // embed runtime binding generator in runtime, while keeping it in a separate project
32
32
java. srcDirs = [bindingGeneratorSourcePath, defaultSrcPath]
33
33
}
34
34
}
You can’t perform that action at this time.
0 commit comments