Switch from gradle-script for war-file to eclipse plugin

Hello there,
I’m new to gradle.
For an Xtext Project Eclipse creates me scripts to receive a war-file. Somehow Polarion needs a Eclipse-Plugin when i want to deploy it on the server. My question is, how to modify the gradle script so it deploys a eclipse-plugin instead of war-file?

Execution command: ./gradlew clean build -x test

where in this folder is the script:

buildscript {
repositories {
dependencies {
classpath ‘org.xtext:xtext-gradle-plugin:1.0.21’

subprojects {
ext.xtextVersion = ‘2.14.0’
repositories {

apply plugin: 'java'
apply plugin: 'org.xtext.xtend'
apply from: "${rootDir}/gradle/source-layout.gradle"
apply from: "${rootDir}/gradle/maven-deployment.gradle"
apply plugin: 'eclipse'

group = 'xxx'
version = '1.0.0-SNAPSHOT'

sourceCompatibility = '1.8'
targetCompatibility = '1.8'

configurations.all {
	exclude group: 'asm'


and the one which is i think the main script:

plugins {
id ‘war’

dependencies {
compile project(’:xxx.dsl’)
compile project(’:xxx.dsl.ide’)
compile “org.eclipse.xtext:org.eclipse.xtext.xbase.web:${xtextVersion}”
compile “org.eclipse.xtext:org.eclipse.xtext.web.servlet:${xtextVersion}”
compile “org.eclipse.xtend:org.eclipse.xtend.lib:${xtextVersion}”
compile “org.webjars:requirejs:2.3.2”
compile “org.webjars:jquery:2.2.4”
compile “org.webjars:ace:1.2.3”
providedCompile “org.eclipse.jetty:jetty-annotations:9.4.9.v20180320”
providedCompile “org.slf4j:slf4j-simple:1.7.21”
task jettyRun(type:JavaExec) {
classpath = sourceSets.main.runtimeClasspath.filter{it.exists()}
main = ‘xxx.ServerLauncher’
standardInput = System.in
group = ‘run’
description = ‘Starts an example Jetty server with your language’

I hope I need just simple settings to receive my deployable eclipse-plugin