forked from VerisimilitudeX/DNAnalyzer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
102 lines (82 loc) · 2.63 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*
* This file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java application project to get you started.
* For more details take a look at the 'Building Java & JVM projects' chapter in the Gradle
* User Manual available at https://docs.gradle.org/7.5.1/userguide/building_java_projects.html
*/
plugins {
// Apply the application plugin to add support for building a CLI application in Java.
id 'application'
id("org.openjfx.javafxplugin") version "0.0.13"
id("maven-publish")
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
def junitVersion = "5.8.2"
javafx {
version = "19"
modules = [ 'javafx.controls', 'javafx.graphics', 'javafx.fxml', 'javafx.base' ]
}
dependencies {
// Use JUnit test framework.
testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-engine:${junitVersion}"
// This dependency is used by the application.
implementation 'com.google.guava:guava:31.0.1-jre'
// Picocli
implementation 'info.picocli:picocli:4.6.3'
// Sentry SDK
implementation 'io.sentry:sentry:6.10.0'
implementation 'org.controlsfx:controlsfx:11.1.2'
// OpenAI-GPT-3
implementation group: 'com.github.plexpt', name: 'chatgpt', version: '4.0.1'
implementation 'com.theokanning.openai-gpt3-java:service:0.11.1'
// JSON Parser
implementation 'org.json:json:20210307'
}
application {
// Define the main class for the application.
mainClass = 'DNAnalyzer.Main'
}
publishing {
repositories {
maven {
name = "Github"
url = uri("https://maven.pkg.github.com/VerisimilitudeX/DNAnalyzer")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}
publications {
register("jar", MavenPublication) {
from(components["java"])
groupId = 'live.dnanalyzer'
artifactId = 'dnanalyzer'
version = '2.0.0'
pom {
url.set("https://github.com/VerisimilitudeX/DNAnalyzer.git")
}
}
}
}
test {
useJUnitPlatform()
testLogging {
events "passed", "skipped", "failed"
}
maxHeapSize = "2g"
}
jar {
manifest {
attributes 'Main-Class': 'DNAnalyzer.Main'
}
duplicatesStrategy = 'exclude'
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}