Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {
}

dependencies {
compile "org.apache.portals.pluto:pluto-util:${plutoVersion}"
implementation "org.apache.portals.pluto:pluto-util:${plutoVersion}"

compileOnly "org.jasig.portal:uPortal-tools:${uPortalVersion}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class PortalShellInvoker {
File serverBase = project.rootProject.file(project.rootProject.ext['buildProperties'].getProperty('server.base'))
File deployDir = new File (serverBase, "webapps/${project.name}")

File libsDir = project.rootProject.file(project.rootProject.getProperty('libsDir'))
File libsDir = new File(project.rootProject.buildDir, 'libs')
libsDir.mkdirs()
project.configurations.shell.files.each {
project.ant.copy(todir: libsDir, file: it.absolutePath)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class WarOverlayPlugin implements Plugin<Project> {
war.doFirst {
war.classpath = war.classpath.filter { !it.name.endsWith(".war") }

war.project.configurations.runtime.each {
war.project.configurations.runtimeClasspath.each {
if (it.name.endsWith(".war")) {
def fileList = war.project.zipTree(it)
if (project.convention.plugins.warOverlay.includeWarJars) {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.4-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
41 changes: 28 additions & 13 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions overlays/Announcements/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ apply plugin: GradleImportExportPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:Announcements:${announcementsPortletVersion}@war"
compile configurations.jdbc
runtimeOnly "org.jasig.portlet:Announcements:${announcementsPortletVersion}@war"
}

war {
archiveName 'Announcements.war'
archiveFileName.set('Announcements.war')
/*
* For uPortal 5 (and beyond), the Community Best Practice for WAR files published to Maven
* Central is that they should *not* contain JDBC driver jars; all such WAR files are
Expand All @@ -36,7 +35,6 @@ war {
import org.apereo.portal.start.shell.PortalShellInvoker

dependencies {
impexp configurations.jdbc
impexp "${portletApiDependency}"
impexp "${servletApiDependency}"

Expand Down
5 changes: 2 additions & 3 deletions overlays/BookmarksPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ import org.apereo.portal.start.gradle.plugins.GradlePlutoPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:BookmarksPortlet:${bookmarksPortletVersion}@war"
compile configurations.jdbc
runtimeOnly "org.jasig.portlet:BookmarksPortlet:${bookmarksPortletVersion}@war"
jdbc "org.jasig.portal:uPortal-hibernate3-dialects:${uPortalVersion}"
}

war {
archiveName 'BookmarksPortlet.war'
archiveFileName.set('BookmarksPortlet.war')
exclude 'WEB-INF/tags/uwfn.tld'
/*
* For uPortal 5 (and beyond), the Community Best Practice for WAR files published to Maven
Expand Down
6 changes: 2 additions & 4 deletions overlays/CalendarPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@ apply plugin: GradleImportExportPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:CalendarPortlet:${calendarPortletVersion}@war"
compile configurations.jdbc
runtimeOnly "org.jasig.portlet:CalendarPortlet:${calendarPortletVersion}@war"
}

war {
archiveName 'CalendarPortlet.war'
archiveFileName.set('CalendarPortlet.war')
/*
* For uPortal 5 (and beyond), the Community Best Practice for WAR files published to Maven
* Central is that they should *not* contain JDBC driver jars; all such WAR files are
Expand All @@ -36,7 +35,6 @@ war {
import org.apereo.portal.start.shell.PortalShellInvoker

dependencies {
impexp configurations.jdbc
impexp "${portletApiDependency}"
impexp "${servletApiDependency}"

Expand Down
5 changes: 2 additions & 3 deletions overlays/FeedbackPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import org.apereo.portal.start.gradle.plugins.GradlePlutoPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:FeedbackPortlet:${feedbackPortletVersion}@war"
compile configurations.jdbc
runtimeOnly "org.jasig.portlet:FeedbackPortlet:${feedbackPortletVersion}@war"
}

war {
archiveName 'FeedbackPortlet.war'
archiveFileName.set('FeedbackPortlet.war')
/*
* For uPortal 5 (and beyond), the Community Best Practice for WAR files published to Maven
* Central is that they should *not* contain JDBC driver jars; all such WAR files are
Expand Down
4 changes: 2 additions & 2 deletions overlays/FunctionalTestsPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import org.apereo.portal.start.gradle.plugins.GradlePlutoPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:FunctionalTestsPortlet:${functionalTestsPortletVersion}@war"
runtimeOnly "org.jasig.portlet:FunctionalTestsPortlet:${functionalTestsPortletVersion}@war"
}

war {
archiveName 'FunctionalTestsPortlet.war'
archiveFileName.set('FunctionalTestsPortlet.war')
}
6 changes: 2 additions & 4 deletions overlays/NewsReaderPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ apply plugin: GradleImportExportPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:NewsReaderPortlet:${newsReaderPortletVersion}@war"
compile configurations.jdbc
runtimeOnly "org.jasig.portlet:NewsReaderPortlet:${newsReaderPortletVersion}@war"
jdbc "org.jasig.portal:uPortal-hibernate3-dialects:${uPortalVersion}"
}

war {
archiveName 'NewsReaderPortlet.war'
archiveFileName.set('NewsReaderPortlet.war')
/*
* For uPortal 5 (and beyond), the Community Best Practice for WAR files published to Maven
* Central is that they should *not* contain JDBC driver jars; all such WAR files are
Expand All @@ -37,7 +36,6 @@ war {
import org.apereo.portal.start.shell.PortalShellInvoker

dependencies {
impexp configurations.jdbc
impexp "${portletApiDependency}"
impexp "${servletApiDependency}"
}
Expand Down
5 changes: 2 additions & 3 deletions overlays/NotificationPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ import org.apereo.portal.start.gradle.plugins.GradlePlutoPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet.notification:notification-portlet-webapp:${notificationPortletVersion}@war"
compile configurations.jdbc
runtimeOnly "org.jasig.portlet.notification:notification-portlet-webapp:${notificationPortletVersion}@war"
}

war {
archiveName 'NotificationPortlet.war'
archiveFileName.set('NotificationPortlet.war')
/*
* For uPortal 5 (and beyond), the Community Best Practice for WAR files published to Maven
* Central is that they should *not* contain JDBC driver jars; all such WAR files are
Expand Down
8 changes: 4 additions & 4 deletions overlays/ResourceServingWebapp/build.gradle
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
dependencies {
runtime "org.jasig.resourceserver:resource-server-webapp:${resourceServerVersion}@war"
runtime "javax.xml.bind:jaxb-api:2.3.1"
runtime "com.sun.xml.bind:jaxb-impl:2.3.3"
runtimeOnly "org.jasig.resourceserver:resource-server-webapp:${resourceServerVersion}@war"
runtimeOnly "javax.xml.bind:jaxb-api:2.3.1"
runtimeOnly "com.sun.xml.bind:jaxb-impl:2.3.3"
}

war {
archiveName 'ResourceServingWebapp.war'
archiveFileName.set('ResourceServingWebapp.war')
}
6 changes: 2 additions & 4 deletions overlays/SimpleContentPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ apply plugin: GradleImportExportPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet.simplecontent:SimpleContentPortlet:${simpleContentPortletVersion}@war"
compile configurations.jdbc
runtimeOnly "org.jasig.portlet.simplecontent:SimpleContentPortlet:${simpleContentPortletVersion}@war"
jdbc "org.jasig.portal:uPortal-hibernate4-dialects:${uPortalVersion}"
}

war {
archiveName 'SimpleContentPortlet.war'
archiveFileName.set('SimpleContentPortlet.war')
/*
* For uPortal 5 (and beyond), the Community Best Practice for WAR files published to Maven
* Central is that they should *not* contain JDBC driver jars; all such WAR files are
Expand All @@ -37,7 +36,6 @@ war {
import org.apereo.portal.start.shell.PortalShellInvoker

dependencies {
impexp configurations.jdbc
impexp "${portletApiDependency}"
impexp "${servletApiDependency}"
}
Expand Down
4 changes: 2 additions & 2 deletions overlays/WebProxyPortlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import org.apereo.portal.start.gradle.plugins.GradlePlutoPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet.proxy:WebProxyPortlet:${webProxyPortletVersion}@war"
runtimeOnly "org.jasig.portlet.proxy:WebProxyPortlet:${webProxyPortletVersion}@war"
}

war {
archiveName 'WebProxyPortlet.war'
archiveFileName.set('WebProxyPortlet.war')
}
4 changes: 2 additions & 2 deletions overlays/basiclti-portlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import org.apereo.portal.start.gradle.plugins.GradlePlutoPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:basiclti-portlet:${basicltiPortletVersion}@war"
runtimeOnly "org.jasig.portlet:basiclti-portlet:${basicltiPortletVersion}@war"
}

war {
archiveName 'basiclti-portlet.war'
archiveFileName.set('basiclti-portlet.war')
}
5 changes: 4 additions & 1 deletion overlays/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import scaldingspoon.gradle.WarOverlayPlugin

subprojects {

apply plugin: 'maven'
apply plugin: WarOverlayPlugin
apply plugin: org.apereo.portal.start.gradle.plugins.GradleTomcatDeployPlugin

Expand All @@ -22,6 +21,10 @@ subprojects {
jdbc
shell
impexp
// Gradle 8: Configuration-as-dependency is no longer allowed;
// use extendsFrom so overlay deps inherit jdbc drivers
implementation.extendsFrom jdbc
impexp.extendsFrom jdbc
}

dependencies {
Expand Down
4 changes: 2 additions & 2 deletions overlays/cas-proxy-test-portlet/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import org.apereo.portal.start.gradle.plugins.GradlePlutoPlugin
apply plugin: GradlePlutoPlugin

dependencies {
runtime "org.jasig.portlet:cas-proxy-test-portlet:${casProxyTestPortletVersion}@war"
runtimeOnly "org.jasig.portlet:cas-proxy-test-portlet:${casProxyTestPortletVersion}@war"
}

war {
archiveName 'cas-proxy-test-portlet.war'
archiveFileName.set('cas-proxy-test-portlet.war')
}
Loading