Skip to content

Commit

Permalink
Update to use new grails publish plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Nov 20, 2024
1 parent f9ade38 commit ed5d25e
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 100 deletions.
25 changes: 15 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import io.github.gradlenexus.publishplugin.InitializeNexusStagingRepository
import org.grails.gradle.plugin.publishing.RepositoryType

buildscript {
repositories {
Expand All @@ -7,15 +7,13 @@ buildscript {
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsGradlePluginVersion"
classpath "io.github.gradle-nexus:publish-plugin:$gradlePublishPlugin"
classpath 'com.adarshr:gradle-test-logger-plugin:4.0.0'
classpath 'io.spring.gradle:dependency-management-plugin'
}
}

plugins {
id 'idea'
id 'io.github.gradle-nexus.publish-plugin' version "$gradlePublishPlugin"
id "com.github.ben-manes.versions" version "0.51.0"
}

Expand Down Expand Up @@ -103,21 +101,28 @@ subprojects { Project project ->
showSkippedStandardStreams false
showFailedStandardStreams true
}

apply plugin: "org.grails.grails-publish"
}

if (project.name in profileProjects) {
apply plugin: "org.grails.grails-profile"
apply plugin: "io.spring.dependency-management"
apply plugin: "org.grails.grails-profile-publish"
}

if (project.name in publishedProjects) {
apply from: rootProject.file("gradle/publishing.gradle")
if(project.name in publishedProjects) {
grailsPublish {
license {
name = 'Apache-2.0'
}
githubSlug = 'grails/grails-spring-security-rest'
title = "Spring Security REST plugin"
desc = "Grails plugin to implement token-based, RESTful authentication using Spring Security"
developers = [alvarosanchez:"Alvaro Sanchez-Mariscal", jameskleeh: "James Kleeh", jdaugherty: "James Daugherty"]
snapshotRepoType = RepositoryType.ARTIFACTORY
}
}
}

apply from: rootProject.file("gradle/docs.gradle")

//do not generate extra load on Nexus with new staging repository if signing fails
tasks.withType(InitializeNexusStagingRepository).configureEach {
shouldRunAfter(tasks.withType(Sign))
}
3 changes: 2 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ grailsGradlePluginVersion=7.0.0-SNAPSHOT
gradlePublishPlugin=2.0.0
springSecurityCoreVersion=7.0.0-SNAPSHOT
pac4jVersion=6.0.6
jackson.version=2.18.0
jackson.version=2.18.0
artifactoryPublishUrl=https://repo.grails.org/grails/plugins3-snapshots-local
89 changes: 0 additions & 89 deletions gradle/publishing.gradle

This file was deleted.

1 change: 1 addition & 0 deletions spring-security-rest-testapp-profile/gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
artifactoryPublishUrl=https://repo.grails.org/grails/libs-snapshots-local

0 comments on commit ed5d25e

Please sign in to comment.