在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):OpenLiberty/ci.gradle开源软件地址(OpenSource Url):https://github.com/OpenLiberty/ci.gradle开源编程语言(OpenSource Language):Groovy 91.8%开源软件介绍(OpenSource Introduction):ci.gradleThe Liberty Gradle plugin supports install and operational control of Liberty runtime and servers. Use it to manage your application on Liberty for integration test and to create Liberty server packages. BuildClone this repository and then, with a JRE on the path, execute the following command in the root directory. $ ./gradlew build This will download Gradle, build the plugin, and install it in to the To build the plugin and run the integration tests execute the following commands in the root directory. The $ ./gradlew install check -Druntime=<wlp|ol> -DruntimeVersion=<runtime_version> -DwlpLicense=<liberty_license_code> UsageAdding the plugin to the build scriptWithin your Gradle build script, you need to set up the classpath to include the Liberty Gradle plugin. You also need to define the Maven Central repository to find the plugin and its dependencies. If you are using a snapshot version of the plugin make sure to define the Sonatype Nexus Snapshots repository in addition to the Maven Central repository. Your build script should look like this: buildscript {
repositories {
mavenCentral()
maven {
name = 'Sonatype Nexus Snapshots'
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
classpath 'io.openliberty.tools:liberty-gradle-plugin:3.4'
}
} To use the Liberty Gradle Plugin, include the following code in your build script: apply plugin: 'liberty' Alternatively, you can apply the plugin through the buildscript {
repositories {
mavenCentral()
mavenLocal()
}
dependencies {
classpath ('io.openliberty.tools:liberty-ant-tasks:1.9.9')
classpath ('io.openliberty.tools:ci.common:1.8.20')
}
}
plugins {
id "io.openliberty.tools.gradle.Liberty" version "3.4"
} Plugin ConfigurationSee the Liberty extension properties reference for the properties used to configure the Liberty plugin. See each task for additional configuration and examples. TasksThe Liberty plugin provides the following tasks for your project:
Task orderingThe Liberty Gradle plugin defines a built-in task order to allow a user to call an end task without worrying about calling the necessary tasks in between. By having the plugin manage tasks and their order of execution we can easily avoid some simple human errors. For example, in order to have a majority of the tasks function, the principal task The most appealing benefit from defining a task order is the ability to allow the user to call an end task directly. For example, if the user calls Click on a task to view what it depends on. ExtensionsExtensions are tasks that improve the compatibility or user experience of third party libraries used with Liberty. The
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论