Skip to content

Commit

Permalink
Fixed groovydoc task
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Jan 24, 2024
1 parent 43ce281 commit df9baaf
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 3 deletions.
19 changes: 19 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,25 @@ version = project.projectVersion
ext.isSnapshot = project.projectVersion.endsWith('-SNAPSHOT')
ext.isReleaseVersion = !isSnapshot

subprojects { project->

if (!project.name.contains('test')) {
return
}

configurations {
documentation
}

dependencies {
documentation "com.github.javaparser:javaparser-core:3.25.8"
}

tasks.withType(Groovydoc).configureEach {
it.classpath += configurations.documentation
}
}

if (isReleaseVersion) {
apply plugin: 'maven-publish'
apply plugin: "io.github.gradle-nexus.publish-plugin"
Expand Down
10 changes: 10 additions & 0 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ repositories {
maven { url "https://repo.grails.org/grails/core" }
}

configurations {
documentation.extendsFrom compileClasspath
}

dependencies {
compileOnly "javax.servlet:javax.servlet-api:$javaxServletApiVersion"
compileOnly "org.springframework.boot:spring-boot-starter-logging"
Expand All @@ -70,6 +74,12 @@ dependencies {
['spring-beans', 'spring-context', 'spring-core', 'spring-security-core',
'spring-security-web', 'spring-web'].each { exclude module: it }
}

documentation "com.github.javaparser:javaparser-core:3.25.8"
}

tasks.withType(Groovydoc).configureEach {
classpath = configurations.documentation
}

publishing {
Expand Down
12 changes: 9 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
gradleEnterprise {
server = 'https://ge.grails.org'
buildScan {
publishAlways()
publishAlwaysIf(System.getenv('CI') == 'true')
publishIfAuthenticated()
uploadInBackground = System.getenv("CI") == null
capture {
Expand All @@ -30,7 +30,13 @@ buildCache {

include 'docs'
include 'plugin'
include 'testapps:spring-security-cas-test1'
include 'testapps:spring-security-cas-test2'
include 'testapp-spring-security-cas-test1'

project(':testapp-spring-security-cas-test1').projectDir = new File(settingsDir, 'testapps/testapp-spring-security-cas-test1')
include 'testapp-spring-security-cas-test2'

project(':testapp-spring-security-cas-test2').projectDir = new File(settingsDir, 'testapps/testapp-spring-security-cas-test2')

rootProject.name = 'grails-spring-security-cas'

findProject(':plugin').name = 'spring-security-cas'

0 comments on commit df9baaf

Please sign in to comment.