mirror of
				https://github.com/IntellectualSites/PlotSquared.git
				synced 2025-11-04 03:03:43 +01:00 
			
		
		
		
	Compare commits
	
		
			1 Commits
		
	
	
		
			fix/plotTi
			...
			build/mast
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					576ee735a5 | 
@@ -66,7 +66,6 @@ subprojects {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
val javadocDir = rootDir.resolve("docs").resolve("javadoc").resolve(project.name)
 | 
					 | 
				
			||||||
allprojects {
 | 
					allprojects {
 | 
				
			||||||
    dependencies {
 | 
					    dependencies {
 | 
				
			||||||
        // Tests
 | 
					        // Tests
 | 
				
			||||||
@@ -172,11 +171,6 @@ allprojects {
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    tasks {
 | 
					    tasks {
 | 
				
			||||||
        named<Delete>("clean") {
 | 
					 | 
				
			||||||
            doFirst {
 | 
					 | 
				
			||||||
                javadocDir.deleteRecursively()
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
        compileJava {
 | 
					        compileJava {
 | 
				
			||||||
            options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000"))
 | 
					            options.compilerArgs.addAll(arrayOf("-Xmaxerrs", "1000"))
 | 
				
			||||||
@@ -187,16 +181,6 @@ allprojects {
 | 
				
			|||||||
            options.encoding = "UTF-8"
 | 
					            options.encoding = "UTF-8"
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        javadoc {
 | 
					 | 
				
			||||||
            val opt = options as StandardJavadocDocletOptions
 | 
					 | 
				
			||||||
            opt.addStringOption("Xdoclint:none", "-quiet")
 | 
					 | 
				
			||||||
            opt.tags(
 | 
					 | 
				
			||||||
                    "apiNote:a:API Note:",
 | 
					 | 
				
			||||||
                    "implSpec:a:Implementation Requirements:",
 | 
					 | 
				
			||||||
                    "implNote:a:Implementation Note:"
 | 
					 | 
				
			||||||
            )
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        shadowJar {
 | 
					        shadowJar {
 | 
				
			||||||
            this.archiveClassifier.set(null as String?)
 | 
					            this.archiveClassifier.set(null as String?)
 | 
				
			||||||
            this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}")
 | 
					            this.archiveFileName.set("${project.name}-${project.version}.${this.archiveExtension.getOrElse("jar")}")
 | 
				
			||||||
@@ -221,37 +205,3 @@ nexusPublishing {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					 | 
				
			||||||
tasks {
 | 
					 | 
				
			||||||
    val aggregatedJavadocs = create<Javadoc>("aggregatedJavadocs") {
 | 
					 | 
				
			||||||
        title = "${project.name} ${project.version} API"
 | 
					 | 
				
			||||||
        setDestinationDir(javadocDir)
 | 
					 | 
				
			||||||
        options.destinationDirectory = javadocDir
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
        doFirst {
 | 
					 | 
				
			||||||
            javadocDir.deleteRecursively()
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }.also {
 | 
					 | 
				
			||||||
        it.group = "Documentation"
 | 
					 | 
				
			||||||
        it.description = "Generate javadocs from all child projects as if it was a single project"
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    subprojects.forEach { subProject ->
 | 
					 | 
				
			||||||
        subProject.afterEvaluate {
 | 
					 | 
				
			||||||
            subProject.tasks.withType<Javadoc>().forEach { task ->
 | 
					 | 
				
			||||||
                aggregatedJavadocs.source += task.source
 | 
					 | 
				
			||||||
                aggregatedJavadocs.classpath += task.classpath
 | 
					 | 
				
			||||||
                aggregatedJavadocs.excludes += task.excludes
 | 
					 | 
				
			||||||
                aggregatedJavadocs.includes += task.includes
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
                val rootOptions = aggregatedJavadocs.options as StandardJavadocDocletOptions
 | 
					 | 
				
			||||||
                val subOptions = task.options as StandardJavadocDocletOptions
 | 
					 | 
				
			||||||
                rootOptions.links(*subOptions.links.orEmpty().minus(rootOptions.links.orEmpty().toSet()).toTypedArray())
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    build {
 | 
					 | 
				
			||||||
        dependsOn(aggregatedJavadocs)
 | 
					 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user