Browse Source

Update build.gradle

pull/1/head
slixe 2 years ago
parent
commit
924c0fab2d
1 changed files with 28 additions and 0 deletions
  1. +28
    -0
      build.gradle

+ 28
- 0
build.gradle View File

@@ -2,11 +2,22 @@ apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'application'

// Groovy interop
sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]

compileJava.options.encoding = 'UTF-8'

mainClassName = 'fr.slixe.benchmarks.Main'

group 'fr.slixe'
version '1.0.0'

sourceCompatibility = 1.8
targetCompatibility = 1.8

repositories {
maven {
url 'http://wytrem.github.io/maven'
@@ -33,4 +44,21 @@ dependencies {
exclude group: 'org.apache.httpcomponents', module: 'httpcore-nio'
exclude group: 'org.apache.logging.log4j', module: 'log4j-core'
}
}

task fatJar(type: Jar) {
from {
configurations
.runtimeClasspath
.findAll { !it.name.endsWith('pom') }
.collect { it.isDirectory() ? it : zipTree(it) }
}
with jar

baseName = 'dero-benchmarks'


manifest {
attributes 'Main-Class': mainClassName
}
}

Loading…
Cancel
Save