Skip to content

Commit

Permalink
Change line endings to CRLF.
Browse files Browse the repository at this point in the history
Also add back line that was taken out by mistake.
  • Loading branch information
matrei committed Nov 7, 2023
1 parent 0f1e2eb commit ed4f858
Showing 1 changed file with 162 additions and 160 deletions.
322 changes: 162 additions & 160 deletions plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,160 +1,162 @@
plugins {
id "groovy"
id "java-library"
id "org.grails.grails-gsp"
id "org.grails.grails-web"
id "war"
id "idea"
id "eclipse"
id 'org.asciidoctor.jvm.convert'
id "io.spring.dependency-management"
id 'org.grails.grails-plugin'
id 'maven-publish'
id 'signing'
}

group = 'org.grails.plugins'
version = project.projectVersion

ext."signing.keyId" = project.hasProperty("signing.keyId") ? project.getProperty('signing.keyId') : System.getenv('SIGNING_KEY')
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : "${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg"
ext."signing.password" = project.hasProperty("signing.password") ? project.getProperty('signing.password') : System.getenv('SIGNING_PASSPHRASE')
ext.pomInfo = {
delegate.name "Grails spring-security-core plugin"
delegate.description 'The Spring Security plugin simplifies the integration of Spring Security into Grails® framework applications.'
delegate.url project.hasProperty('vcsUrl') ? project.vcsUrl : "https://github.com/grails-plugins/$project.name"

delegate.licenses {
delegate.license {
delegate.name 'The Apache Software License, Version 2.0'
delegate.url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
delegate.distribution 'repo'
}
}

delegate.scm {
delegate.url "scm:[email protected]:${githubSlug}.git"
delegate.connection "scm:[email protected]:${githubSlug}.git"
delegate.developerConnection "scm:[email protected]:${githubSlug}.git"
}

if (developers) {
delegate.developers {
for (dev in developers.split(',')) {
delegate.developer {
delegate.id dev.toLowerCase().replace(' ', '')
delegate.name dev
}
}
}
}
}

java {
withJavadocJar()
withSourcesJar()
}

repositories {
mavenCentral()
maven { url 'https://repo.grails.org/grails/core' }
}

dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}

configurations {
all {
resolutionStrategy.force 'org.codehaus.groovy:groovy-xml:3.0.13'
resolutionStrategy.eachDependency { DependencyResolveDetails details->
if (details.requested.group == 'org.seleniumhq.selenium') {
details.useVersion('4.10.0')
}
}
}
}

dependencies {
compileOnly "javax.servlet:javax.servlet-api:$javaxServletApiVersion"
compileOnly 'org.grails:grails-dependencies'
compileOnly 'org.grails:grails-web-boot'
compileOnly 'org.springframework.boot:spring-boot-starter-logging'
compileOnly "net.sf.ehcache:ehcache:$ehcacheVersion"
api "org.springframework.security:spring-security-core:$springSecurityVersion", {
['spring-aop', 'spring-beans', 'spring-context', 'spring-core', 'spring-expression'].each {
exclude module: it
}
}
api "org.springframework.security:spring-security-web:$springSecurityVersion", {
exclude module: 'spring-web'
}

testImplementation "org.grails:grails-gorm-testing-support:$grailsTestingSupportVersion"
testImplementation "org.grails:grails-web-testing-support:$grailsTestingSupportVersion"
testRuntimeOnly 'cglib:cglib-nodep:3.3.0'
}

tasks.named("compileGroovyPages").configure {
classpath += configurations.compileClasspath
}

apply from: "${rootProject.projectDir}/gradle/docs.gradle"
apply from: "${rootProject.projectDir}/gradle/cleanBuild.gradle"
apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"

publishing {
if (isSnapshot) {
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
url "https://repo.grails.org/grails/plugins3-snapshots-local"
}
}
}

publications {
maven(MavenPublication) {
artifactId project.name
from components.java
artifact source: "${buildDir}/classes/groovy/main/META-INF/grails-plugin.xml",
classifier: "plugin",
extension: 'xml'

versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom.withXml {
def xml = asNode()

xml.children().last() + pomInfo
// dependency management shouldn't be included
def n = xml.get("dependencyManagement")
if (n)
xml.remove(n)
}

}
}
}

signing {
sign publishing.publications.maven
}

tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}
plugins {
id "groovy"
id "java-library"
id "org.grails.grails-gsp"
id "org.grails.grails-web"
id "war"
id "idea"
id "eclipse"
id 'org.asciidoctor.jvm.convert'
id "io.spring.dependency-management"
id 'org.grails.grails-plugin'
id 'maven-publish'
id 'signing'
}

group = 'org.grails.plugins'
version = project.projectVersion

ext."signing.keyId" = project.hasProperty("signing.keyId") ? project.getProperty('signing.keyId') : System.getenv('SIGNING_KEY')
ext."signing.secretKeyRingFile" = project.hasProperty("signing.secretKeyRingFile") ? project.getProperty('signing.secretKeyRingFile') : "${System.properties['user.home']}${File.separator}.gnupg${File.separator}secring.gpg"
ext."signing.password" = project.hasProperty("signing.password") ? project.getProperty('signing.password') : System.getenv('SIGNING_PASSPHRASE')
ext.pomInfo = {
delegate.name "Grails spring-security-core plugin"
delegate.description 'The Spring Security plugin simplifies the integration of Spring Security into Grails® framework applications.'
delegate.url project.hasProperty('vcsUrl') ? project.vcsUrl : "https://github.com/grails-plugins/$project.name"

delegate.licenses {
delegate.license {
delegate.name 'The Apache Software License, Version 2.0'
delegate.url 'https://www.apache.org/licenses/LICENSE-2.0.txt'
delegate.distribution 'repo'
}
}

delegate.scm {
delegate.url "scm:[email protected]:${githubSlug}.git"
delegate.connection "scm:[email protected]:${githubSlug}.git"
delegate.developerConnection "scm:[email protected]:${githubSlug}.git"
}

if (developers) {
delegate.developers {
for (dev in developers.split(',')) {
delegate.developer {
delegate.id dev.toLowerCase().replace(' ', '')
delegate.name dev
}
}
}
}
}

java {
withJavadocJar()
withSourcesJar()
}

repositories {
mavenCentral()
maven { url 'https://repo.grails.org/grails/core' }
}

dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}

configurations {
all {
resolutionStrategy.force 'org.codehaus.groovy:groovy-xml:3.0.13'
resolutionStrategy.eachDependency { DependencyResolveDetails details->
if (details.requested.group == 'org.seleniumhq.selenium') {
details.useVersion('4.10.0')
}
}
}
}

sourceCompatibility = targetCompatibility = 1.11

dependencies {
compileOnly "javax.servlet:javax.servlet-api:$javaxServletApiVersion"
compileOnly 'org.grails:grails-dependencies'
compileOnly 'org.grails:grails-web-boot'
compileOnly 'org.springframework.boot:spring-boot-starter-logging'
compileOnly "net.sf.ehcache:ehcache:$ehcacheVersion"
api "org.springframework.security:spring-security-core:$springSecurityVersion", {
['spring-aop', 'spring-beans', 'spring-context', 'spring-core', 'spring-expression'].each {
exclude module: it
}
}
api "org.springframework.security:spring-security-web:$springSecurityVersion", {
exclude module: 'spring-web'
}

testImplementation "org.grails:grails-gorm-testing-support:$grailsTestingSupportVersion"
testImplementation "org.grails:grails-web-testing-support:$grailsTestingSupportVersion"
testRuntimeOnly 'cglib:cglib-nodep:3.3.0'
}

tasks.named("compileGroovyPages").configure {
classpath += configurations.compileClasspath
}

apply from: "${rootProject.projectDir}/gradle/docs.gradle"
apply from: "${rootProject.projectDir}/gradle/cleanBuild.gradle"
apply from: "${rootProject.projectDir}/gradle/testVerbose.gradle"

publishing {
if (isSnapshot) {
repositories {
maven {
credentials {
def u = System.getenv("ARTIFACTORY_USERNAME") ?: project.hasProperty("artifactoryPublishUsername") ? project.artifactoryPublishUsername : ''
def p = System.getenv("ARTIFACTORY_PASSWORD") ?: project.hasProperty("artifactoryPublishPassword") ? project.artifactoryPublishPassword : ''
username = u
password = p
}
url "https://repo.grails.org/grails/plugins3-snapshots-local"
}
}
}

publications {
maven(MavenPublication) {
artifactId project.name
from components.java
artifact source: "${buildDir}/classes/groovy/main/META-INF/grails-plugin.xml",
classifier: "plugin",
extension: 'xml'

versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom.withXml {
def xml = asNode()

xml.children().last() + pomInfo
// dependency management shouldn't be included
def n = xml.get("dependencyManagement")
if (n)
xml.remove(n)
}

}
}
}

signing {
sign publishing.publications.maven
}

tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}

0 comments on commit ed4f858

Please sign in to comment.