Created
July 22, 2021 13:32
-
-
Save pablohdzvizcarra/962e1b25811c639e46f219eebfa61253 to your computer and use it in GitHub Desktop.
example file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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