Skip to content

Commit

Permalink
build.gradle? removed leftovers from Piper
Browse files Browse the repository at this point in the history
thanks @ErwinGeirnaert, fixes #2
  • Loading branch information
dnet committed Dec 13, 2021
1 parent 07c421f commit 3699256
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'com.google.protobuf'

sourceCompatibility = 1.8
targetCompatibility = 1.8

Expand All @@ -31,7 +29,6 @@ buildscript {
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.google.protobuf:protobuf-gradle-plugin:0.8.5'
}
}

Expand All @@ -42,8 +39,6 @@ repositories {

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "com.google.protobuf:protobuf-lite:3.0.0"
compile "org.snakeyaml:snakeyaml-engine:1.0"

compile 'net.portswigger.burp.extender:burp-extender-api:1.7.22'
compile 'com.esotericsoftware:minlog:1.3'
Expand All @@ -52,43 +47,7 @@ dependencies {
}

jar {
sourceSets {
sourceSets.main.java.srcDirs += 'build/generated/source/proto/main/java'
}
from('src/main/yaml') {
include('*.yaml')
}
from('static') {
include('mime.pb')
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}

protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.0.0' }
plugins {
javalite {
artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
remove java
}
task.plugins {
javalite { }
}
}
}
}

sourceSets {
main {
java {
srcDirs += file("${protobuf.generatedFilesBaseDir}/main/javalite")
}
}
}

0 comments on commit 3699256

Please sign in to comment.