Skip to content

Commit

Permalink
Update OpenLiberty plugin to 3.0 (#1010)
Browse files Browse the repository at this point in the history
  • Loading branch information
acoburn authored Aug 10, 2020
1 parent e28b40d commit 041a7a5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
16 changes: 13 additions & 3 deletions platform/openliberty/build.gradle
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
// OpenLiberty requires using the legacy plugin management mechanism
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'io.openliberty.tools:liberty-gradle-plugin:3.0'
}
}

plugins {
id "war"
id "net.wasdev.wlp.gradle.plugins.Liberty"
}

apply plugin: 'liberty'

ext {
appName = "trellis"
testServerHttpPort = 9080
Expand Down Expand Up @@ -66,15 +77,14 @@ dependencies {
liberty {
server {
name = "${appName}"
configFile = file("src/main/liberty/config/server.xml")
serverXmlFile = file("src/main/liberty/config/server.xml")
bootstrapProperties = ['default.http.port': testServerHttpPort,
'default.https.port': testServerHttpsPort,
'trellis.triplestore.rdf-location': 'data/resources',
'trellis.file.memento-path': 'data/mementos',
'trellis.file.binary-path': 'data/binary',
'app.context.root': warContext]
packageLiberty {
archive = "$buildDir/${appName}.zip"
include = "usr"
}
}
Expand Down
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ pluginManagement {
id 'biz.aQute.bnd.builder' version "4.1.0"
id 'info.solidsoft.pitest' version "1.5.1"
id 'io.quarkus' version "1.7.0.Final"
id "net.wasdev.wlp.gradle.plugins.Liberty" version "2.7"
}
}

Expand Down

0 comments on commit 041a7a5

Please sign in to comment.