only use main source set

This commit is contained in:
dfsek
2021-04-25 22:27:37 -07:00
parent 73ca08cb3d
commit 800b8bc3a7
+1 -3
View File
@@ -76,8 +76,7 @@ tasks.create<SourceTask>("tectonicDocs") {
val docs = HashMap<String, String>() val docs = HashMap<String, String>()
sourceSets.forEach { sourceSet -> sourceSets.main.get().java.forEach { file ->
sourceSet.java.forEach { file ->
val doc = StringBuilder() val doc = StringBuilder()
val name = file.name.substring(0, file.name.length - 5) val name = file.name.substring(0, file.name.length - 5)
val unit = StaticJavaParser.parse(file) val unit = StaticJavaParser.parse(file)
@@ -118,7 +117,6 @@ tasks.create<SourceTask>("tectonicDocs") {
docs[name] = s docs[name] = s
} }
} }
}
println("Done. Generated ${docs.size} files") println("Done. Generated ${docs.size} files")
val docsDir = File(buildDir, "tectonic") val docsDir = File(buildDir, "tectonic")