mirror of
https://github.com/ReaJason/MemShellParty.git
synced 2026-09-22 07:00:43 +08:00
build: use Kotlin DSL
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
idea {
|
||||
module {
|
||||
excludeDirs += file('src')
|
||||
}
|
||||
}
|
||||
|
||||
subprojects {
|
||||
group = 'com.reajason.javaweb.vul'
|
||||
version = ''
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'war'
|
||||
}
|
||||
|
||||
java {
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
configurations {
|
||||
providedRuntime
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web:1.5.22.RELEASE'
|
||||
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat:1.5.22.RELEASE'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE'
|
||||
}
|
||||
|
||||
tasks.register('bootJar', Jar) {
|
||||
archiveBaseName = project.name
|
||||
archiveVersion = project.version
|
||||
|
||||
from sourceSets.main.output
|
||||
from {
|
||||
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
|
||||
}
|
||||
manifest {
|
||||
attributes 'Main-Class': 'com.reajason.javaweb.vul.springboot1.VulSpringboot1Application'
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
plugins {
|
||||
id("java")
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-web:1.5.22.RELEASE")
|
||||
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat:1.5.22.RELEASE")
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test:1.5.22.RELEASE")
|
||||
}
|
||||
|
||||
tasks.register("bootJar", Jar::class.java) {
|
||||
archiveBaseName.set(project.name)
|
||||
archiveVersion.set("")
|
||||
|
||||
from(sourceSets.main.get().output)
|
||||
from(configurations.runtimeClasspath.get().map { if (it.isDirectory) it else zipTree(it) })
|
||||
manifest {
|
||||
attributes["Main-Class"] = "com.reajason.javaweb.vul.springboot1.VulSpringboot1Application"
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.7.6'
|
||||
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
|
||||
id 'java'
|
||||
id 'war'
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation('org.springframework.boot:spring-boot-starter-web') {
|
||||
exclude module: "spring-boot-starter-tomcat"
|
||||
}
|
||||
implementation 'commons-io:commons-io:2.19.0'
|
||||
implementation 'net.bytebuddy:byte-buddy:1.10.10'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-jetty'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
plugins {
|
||||
id("org.springframework.boot") version "2.7.6"
|
||||
id("io.spring.dependency-management") version "1.0.15.RELEASE"
|
||||
id("java")
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-web") {
|
||||
exclude(module = "spring-boot-starter-tomcat")
|
||||
}
|
||||
implementation("commons-io:commons-io:2.19.0")
|
||||
implementation("net.bytebuddy:byte-buddy:1.10.10")
|
||||
implementation("org.springframework.boot:spring-boot-starter-jetty")
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.7.6'
|
||||
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
|
||||
id 'java'
|
||||
id 'war'
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation('org.springframework.boot:spring-boot-starter-web') {
|
||||
exclude module: "spring-boot-starter-tomcat"
|
||||
}
|
||||
implementation 'commons-io:commons-io:2.19.0'
|
||||
implementation 'net.bytebuddy:byte-buddy:1.10.10'
|
||||
implementation 'org.springframework.boot:spring-boot-starter-undertow'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
plugins {
|
||||
id("org.springframework.boot") version "2.7.6"
|
||||
id("io.spring.dependency-management") version "1.0.15.RELEASE"
|
||||
id("java")
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-web") {
|
||||
exclude(module = "spring-boot-starter-tomcat")
|
||||
}
|
||||
implementation("commons-io:commons-io:2.19.0")
|
||||
implementation("net.bytebuddy:byte-buddy:1.10.10")
|
||||
implementation("org.springframework.boot:spring-boot-starter-undertow")
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.7.6'
|
||||
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
|
||||
id 'java'
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-webflux'
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
plugins {
|
||||
id("org.springframework.boot") version "2.7.6"
|
||||
id("io.spring.dependency-management") version "1.0.15.RELEASE"
|
||||
id("java")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-webflux")
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
plugins {
|
||||
id 'org.springframework.boot' version '2.7.6'
|
||||
id 'io.spring.dependency-management' version '1.0.15.RELEASE'
|
||||
id 'java'
|
||||
id 'war'
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
implementation 'commons-io:commons-io:2.19.0'
|
||||
implementation 'net.bytebuddy:byte-buddy:1.10.10'
|
||||
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
||||
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
plugins {
|
||||
id("org.springframework.boot") version "2.7.6"
|
||||
id("io.spring.dependency-management") version "1.0.15.RELEASE"
|
||||
id("java")
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-web")
|
||||
implementation("commons-io:commons-io:2.19.0")
|
||||
implementation("net.bytebuddy:byte-buddy:1.10.10")
|
||||
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
|
||||
testImplementation("org.springframework.boot:spring-boot-starter-test")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'org.springframework.boot' version '3.3.7'
|
||||
id 'io.spring.dependency-management' version '1.1.7'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-webflux'
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
plugins {
|
||||
id("java")
|
||||
id("org.springframework.boot") version "3.3.7"
|
||||
id("io.spring.dependency-management") version "1.1.7"
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-webflux")
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
plugins {
|
||||
id 'java'
|
||||
id 'war'
|
||||
id 'org.springframework.boot' version '3.3.7'
|
||||
id 'io.spring.dependency-management' version '1.1.7'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'org.springframework.boot:spring-boot-starter-web'
|
||||
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
plugins {
|
||||
id("java")
|
||||
id("war")
|
||||
id("org.springframework.boot") version "3.3.7"
|
||||
id("io.spring.dependency-management") version "1.1.7"
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(17)
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.springframework.boot:spring-boot-starter-web")
|
||||
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
|
||||
}
|
||||
@@ -1,58 +0,0 @@
|
||||
plugins {
|
||||
id 'war'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(8)
|
||||
}
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
configurations {
|
||||
cb110
|
||||
cb194
|
||||
cb183
|
||||
cb170
|
||||
cb161
|
||||
cc321
|
||||
cc40
|
||||
}
|
||||
|
||||
dependencies {
|
||||
cb110 'commons-beanutils:commons-beanutils:1.10.0'
|
||||
cb194 'commons-beanutils:commons-beanutils:1.9.4'
|
||||
cb183 'commons-beanutils:commons-beanutils:1.8.3'
|
||||
cb170 'commons-beanutils:commons-beanutils:1.7.0'
|
||||
cb161 'commons-beanutils:commons-beanutils:1.6.1'
|
||||
cc321 'commons-collections:commons-collections:3.2.1'
|
||||
cc40 'org.apache.commons:commons-collections4:4.0'
|
||||
|
||||
implementation 'com.caucho:hessian:4.0.66'
|
||||
providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
|
||||
}
|
||||
|
||||
war {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
|
||||
doFirst {
|
||||
delete "src/main/webapp/WEB-INF/dep"
|
||||
|
||||
copy { from configurations.cb110 into "src/main/webapp/WEB-INF/dep" }
|
||||
copy { from configurations.cb194 into "src/main/webapp/WEB-INF/dep" }
|
||||
copy { from configurations.cb183 into "src/main/webapp/WEB-INF/dep" }
|
||||
copy { from configurations.cb170 into "src/main/webapp/WEB-INF/dep" }
|
||||
copy { from configurations.cb161 into "src/main/webapp/WEB-INF/dep" }
|
||||
copy { from configurations.cc321 into "src/main/webapp/WEB-INF/dep" }
|
||||
copy { from configurations.cc40 into "src/main/webapp/WEB-INF/dep" }
|
||||
}
|
||||
}
|
||||
|
||||
clean {
|
||||
delete "src/main/webapp/WEB-INF/dep"
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
plugins {
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(8)
|
||||
}
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
configurations {
|
||||
create("cb110")
|
||||
create("cb194")
|
||||
create("cb183")
|
||||
create("cb170")
|
||||
create("cb161")
|
||||
create("cc321")
|
||||
create("cc40")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
"cb110"("commons-beanutils:commons-beanutils:1.10.0")
|
||||
"cb194"("commons-beanutils:commons-beanutils:1.9.4")
|
||||
"cb183"("commons-beanutils:commons-beanutils:1.8.3")
|
||||
"cb170"("commons-beanutils:commons-beanutils:1.7.0")
|
||||
"cb161"("commons-beanutils:commons-beanutils:1.6.1")
|
||||
"cc321"("commons-collections:commons-collections:3.2.1")
|
||||
"cc40"("org.apache.commons:commons-collections4:4.0")
|
||||
|
||||
implementation("com.caucho:hessian:4.0.66")
|
||||
providedCompile("javax.servlet:javax.servlet-api:3.1.0")
|
||||
}
|
||||
|
||||
tasks.war {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
|
||||
doFirst {
|
||||
delete("src/main/webapp/WEB-INF/dep")
|
||||
copy {
|
||||
from(
|
||||
configurations["cb110"],
|
||||
configurations["cb194"],
|
||||
configurations["cb183"],
|
||||
configurations["cb170"],
|
||||
configurations["cb161"],
|
||||
configurations["cc321"],
|
||||
configurations["cc40"]
|
||||
)
|
||||
into("src/main/webapp/WEB-INF/dep")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
tasks.clean {
|
||||
delete("src/main/webapp/WEB-INF/dep")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
plugins {
|
||||
id 'war'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(8)
|
||||
}
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'commons-fileupload:commons-fileupload:1.3.3'
|
||||
implementation 'commons-beanutils:commons-beanutils:1.9.3'
|
||||
implementation 'de.odysseus.juel:juel-impl:2.2.7'
|
||||
implementation 'org.freemarker:freemarker:2.3.23'
|
||||
implementation 'commons-io:commons-io:2.19.0'
|
||||
implementation 'org.apache.velocity:velocity:1.7'
|
||||
implementation 'ognl:ognl:2.7.3'
|
||||
implementation 'org.mvel:mvel2:2.4.7.Final'
|
||||
implementation 'org.beanshell:bsh:2.0b5'
|
||||
implementation 'org.apache.commons:commons-jexl:2.1.1'
|
||||
implementation 'org.apache.commons:commons-jexl3:3.2.1'
|
||||
implementation 'commons-jxpath:commons-jxpath:1.3'
|
||||
implementation 'com.googlecode.aviator:aviator:5.2.7'
|
||||
implementation 'org.codehaus.groovy:groovy:3.0.6'
|
||||
implementation 'org.mozilla:rhino:1.7.14'
|
||||
implementation 'com.hubspot.jinjava:jinjava:2.4.5'
|
||||
implementation 'org.springframework:spring-expression:4.3.0.RELEASE'
|
||||
providedCompile 'de.odysseus.juel:juel-api:2.2.7'
|
||||
providedCompile 'javax.servlet:javax.servlet-api:3.1.0'
|
||||
|
||||
testImplementation platform('org.junit:junit-bom:5.11.4')
|
||||
testImplementation 'org.junit.jupiter:junit-jupiter'
|
||||
}
|
||||
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
plugins {
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(8)
|
||||
}
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("commons-fileupload:commons-fileupload:1.3.3")
|
||||
implementation("commons-beanutils:commons-beanutils:1.9.3")
|
||||
implementation("de.odysseus.juel:juel-impl:2.2.7")
|
||||
implementation("org.freemarker:freemarker:2.3.23")
|
||||
implementation("commons-io:commons-io:2.19.0")
|
||||
implementation("org.apache.velocity:velocity:1.7")
|
||||
implementation("ognl:ognl:2.7.3")
|
||||
implementation("org.mvel:mvel2:2.4.7.Final")
|
||||
implementation("org.beanshell:bsh:2.0b5")
|
||||
implementation("org.apache.commons:commons-jexl:2.1.1")
|
||||
implementation("org.apache.commons:commons-jexl3:3.2.1")
|
||||
implementation("commons-jxpath:commons-jxpath:1.3")
|
||||
implementation("com.googlecode.aviator:aviator:5.2.7")
|
||||
implementation("org.codehaus.groovy:groovy:3.0.6")
|
||||
implementation("org.mozilla:rhino:1.7.14")
|
||||
implementation("com.hubspot.jinjava:jinjava:2.4.5")
|
||||
implementation("org.springframework:spring-expression:4.3.0.RELEASE")
|
||||
providedCompile("de.odysseus.juel:juel-api:2.2.7")
|
||||
providedCompile("javax.servlet:javax.servlet-api:3.1.0")
|
||||
testImplementation(platform("org.junit:junit-bom:5.11.4"))
|
||||
testImplementation("org.junit.jupiter:junit-jupiter")
|
||||
}
|
||||
|
||||
tasks.test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'war'
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
@@ -11,7 +11,7 @@ java {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'commons-fileupload:commons-fileupload:1.5'
|
||||
implementation 'commons-beanutils:commons-beanutils:1.9.3'
|
||||
providedCompile 'jakarta.servlet:jakarta.servlet-api:5.0.0'
|
||||
implementation("commons-fileupload:commons-fileupload:1.5")
|
||||
implementation("commons-beanutils:commons-beanutils:1.9.3")
|
||||
providedCompile("jakarta.servlet:jakarta.servlet-api:5.0.0")
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'war'
|
||||
id("war")
|
||||
}
|
||||
|
||||
java {
|
||||
@@ -11,7 +11,7 @@ java {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation 'commons-fileupload:commons-fileupload:1.3.3'
|
||||
implementation 'commons-beanutils:commons-beanutils:1.9.2'
|
||||
providedCompile "javax.servlet:servlet-api:2.5"
|
||||
implementation("commons-fileupload:commons-fileupload:1.3.3")
|
||||
implementation("commons-beanutils:commons-beanutils:1.9.2")
|
||||
providedCompile("javax.servlet:servlet-api:2.5")
|
||||
}
|
||||
Reference in New Issue
Block a user