Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main hotupdate guoyj #662

Closed
wants to merge 7 commits into from
75 changes: 37 additions & 38 deletions rasp/jvm/JVMAgent/build.gradle
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}

group 'com.security'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
implementation group: 'io.netty', name: 'netty-all', version: '4.1.85.Final'
}

compileJava {
options.release.set(8)
}

jar {
manifest {
attributes 'Agent-Class': 'com.security.smithloader.SmithAgent'
attributes 'Premain-Class': 'com.security.smithloader.SmithAgent'
attributes 'Can-Retransform-Classes': 'true'
attributes 'Boot-Class-Path': 'SmithAgent.jar'
attributes 'Specification-Title': 'Smith Agent'
attributes 'Specification-Version': '1.0'
attributes 'Implementation-Title': 'Smith Agent'
attributes 'Implementation-Version': "$System.env.BUILD_VERSION"
}
}

shadowJar {
relocate 'org.apache.commons', 'agent.org.apache.commons'
relocate 'META-INF/native/libnetty', 'META-INF/native/librasp_netty'
}
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '6.0.0'
}

group 'com.security'
version '1.0-SNAPSHOT'

repositories {
mavenCentral()
}

dependencies {
implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.11'
}

compileJava {
options.release.set(8)
}

jar {
manifest {
attributes 'Agent-Class': 'com.security.smithloader.SmithAgent'
attributes 'Premain-Class': 'com.security.smithloader.SmithAgent'
attributes 'Can-Retransform-Classes': 'true'
attributes 'Boot-Class-Path': 'SmithAgent.jar'
attributes 'Specification-Title': 'Smith Agent'
attributes 'Specification-Version': '1.0'
attributes 'Implementation-Title': 'Smith Agent'
attributes 'Implementation-Version': "$System.env.BUILD_VERSION"
}
}

shadowJar {
relocate 'org.apache.commons', 'rasp.org.apache.commons'
}

Loading
Loading