Advertisement
Guest User

Untitled

a guest
Mar 12th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. plugins {
  2.     id "me.champeau.gradle.jmh" version "0.4.6"
  3. }
  4.  
  5. apply plugin: 'java'
  6. apply plugin: 'application'
  7. apply plugin: 'idea'
  8. apply plugin: 'me.champeau.gradle.jmh'
  9.  
  10. group = 'c1717381'
  11. mainClassName = "c1717381.Main"
  12.  
  13. sourceCompatibility = 11
  14. targetCompatibility = 11
  15.  
  16. repositories {
  17.     jcenter()
  18. }
  19.  
  20. jar {
  21.     manifest {
  22.         attributes(
  23.             'Main-Class': mainClassName
  24.         )
  25.     }
  26. }
  27.  
  28. jmh {
  29.     duplicateClassesStrategy = 'warn'
  30. }
  31.  
  32. dependencies {
  33.     compile "org.openjdk.jmh:jmh-core:1.21"
  34. }
  35.  
  36. jmhJar {
  37.     manifest {
  38.         attributes(
  39.                 'Main-Class': "org.openjdk.jmh.Main"
  40.         )
  41.     }
  42.  
  43.     from {
  44.         configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement