Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
avoid experimental classes from target.
Browse files Browse the repository at this point in the history
  • Loading branch information
toliner committed Apr 18, 2021
1 parent 0eb02e4 commit 19ff25d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ suspend fun main(args: Array<String>) {
suspend fun main(targetDir: File, moduleName: String) {
val cdkClasses = ClassPath.from(ClassLoader.getSystemClassLoader()).allClasses.asFlow()
.filter { it.packageName.startsWith("software.amazon.awscdk") }
.filterNot { it.packageName.contains("experimental") }
.map { it.load() }
.filter {
File(it.protectionDomain.codeSource.location.toURI()).name.split('-').dropLast(1)
Expand Down

0 comments on commit 19ff25d

Please sign in to comment.