mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-05-07 06:36:57 +02:00
Rename serve to run to match plugin task
This commit is contained in:
committed by
René Pfeuffer
parent
dacbac3552
commit
6c5793ca21
@@ -59,8 +59,8 @@ gradlePlugin {
|
||||
implementationClass = 'com.cloudogu.scm.CorePluginsGradlePlugin'
|
||||
}
|
||||
serve {
|
||||
id = 'org.scm-manager.serve'
|
||||
implementationClass = 'com.cloudogu.scm.ServePlugin'
|
||||
id = 'org.scm-manager.run'
|
||||
implementationClass = 'com.cloudogu.scm.RunPlugin'
|
||||
}
|
||||
integrationTest {
|
||||
id = 'org.scm-manager.integration-tests'
|
||||
|
||||
@@ -37,7 +37,7 @@ class IntegrationTestPlugin implements Plugin<Project> {
|
||||
it.extension = extension
|
||||
}
|
||||
|
||||
project.tasks.register("startScmServer", ServeTask) {
|
||||
project.tasks.register("startScmServer", RunTask) {
|
||||
it.extension = extension
|
||||
it.waitForCompletion = false
|
||||
it.frontend = false
|
||||
|
||||
@@ -29,8 +29,7 @@ import org.gradle.api.Plugin
|
||||
import org.gradle.api.Project
|
||||
import com.moowork.gradle.node.NodeExtension
|
||||
|
||||
|
||||
class ServePlugin implements Plugin<Project> {
|
||||
class RunPlugin implements Plugin<Project> {
|
||||
|
||||
void apply(Project project) {
|
||||
def extension = project.extensions.create("scmServer", ScmServerExtension, project)
|
||||
@@ -45,7 +44,7 @@ class ServePlugin implements Plugin<Project> {
|
||||
project.tasks.register('write-server-config', WriteServerConfigTask) {
|
||||
it.extension = extension
|
||||
}
|
||||
project.tasks.register("serve", ServeTask) {
|
||||
project.tasks.register("run", RunTask) {
|
||||
it.extension = extension
|
||||
dependsOn 'write-server-config', 'yarnSetup'
|
||||
}
|
||||
@@ -34,7 +34,7 @@ import org.gradle.api.tasks.TaskAction
|
||||
import org.gradle.api.GradleException
|
||||
import org.gradle.api.tasks.options.Option
|
||||
|
||||
class ServeTask extends DefaultTask {
|
||||
class RunTask extends DefaultTask {
|
||||
|
||||
@Input
|
||||
boolean frontend = true
|
||||
@@ -25,7 +25,7 @@
|
||||
plugins {
|
||||
id 'war'
|
||||
id 'org.scm-manager.java'
|
||||
id 'org.scm-manager.serve'
|
||||
id 'org.scm-manager.run'
|
||||
id 'org.scm-manager.core-plugins'
|
||||
id 'io.swagger.core.v3.swagger-gradle-plugin' version '2.1.6'
|
||||
}
|
||||
@@ -160,7 +160,7 @@ scmServer {
|
||||
loggingConfiguration = file('src/main/conf/logback.serve.xml')
|
||||
}
|
||||
|
||||
serve {
|
||||
run {
|
||||
dependsOn 'dev-war'
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user