Skip to content

Instantly share code, notes, and snippets.

@pablohdzvizcarra
Created July 22, 2021 13:32
Show Gist options
  • Save pablohdzvizcarra/962e1b25811c639e46f219eebfa61253 to your computer and use it in GitHub Desktop.
Save pablohdzvizcarra/962e1b25811c639e46f219eebfa61253 to your computer and use it in GitHub Desktop.
example file
plugins {
id 'application'
}
group 'com.shop.items'
version '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains:annotations:20.1.0'
implementation 'org.jetbrains:annotations:20.1.0'
implementation 'mysql:mysql-connector-java:8.0.26'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
}
test {
useJUnitPlatform()
}
jar {
manifest {
attributes "Main-Class": "com.shop.items.Main"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
application {
getMainClass().set('Main')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment