Diff of /build.gradle [000000] .. [8c4ad8]

Switch to unified view

a b/build.gradle
1
plugins {
2
    id 'org.springframework.boot' version '2.7.5'
3
    id 'io.spring.dependency-management' version '1.0.15.RELEASE'
4
    id 'java'
5
    id 'application'
6
    id("org.openjfx.javafxplugin") version "0.0.13"
7
    id("maven-publish")
8
}
9
10
group = 'com.dnanalyzer'
11
version = '1.2.1'
12
sourceCompatibility = '17'
13
targetCompatibility = '17'
14
15
repositories {
16
    mavenCentral()
17
}
18
19
def junitVersion = "5.8.2"
20
21
javafx {
22
    version = "19"
23
    modules = ['javafx.controls', 'javafx.graphics', 'javafx.fxml', 'javafx.base']
24
}
25
26
dependencies {
27
    implementation 'org.springframework.boot:spring-boot-starter-web'
28
    implementation 'org.json:json:20230227'
29
    implementation 'info.picocli:picocli:4.7.5'
30
    implementation 'org.springframework.boot:spring-boot-starter-validation'
31
    implementation 'javax.validation:validation-api:2.0.1.Final'
32
33
    compileOnly group: 'org.projectlombok', name: 'lombok', version: '1.18.30'
34
    implementation group: 'org.springdoc', name: 'springdoc-openapi-starter-webmvc-ui', version: '2.2.0'
35
36
    testImplementation 'org.springframework.boot:spring-boot-starter-test'
37
    testImplementation "org.junit.jupiter:junit-jupiter-api:5.9.2"
38
    testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.9.2"
39
    testImplementation "org.junit.jupiter:junit-jupiter:${junitVersion}"
40
    testImplementation 'org.junit.jupiter:junit-jupiter-params:5.8.1'
41
42
    implementation 'com.google.guava:guava:31.0.1-jre'
43
    implementation 'io.sentry:sentry:6.10.0'
44
    implementation 'org.controlsfx:controlsfx:11.1.2'
45
    implementation group: 'com.github.plexpt', name: 'chatgpt', version: '4.0.1'
46
    implementation 'com.theokanning.openai-gpt3-java:service:0.11.1'
47
    implementation 'org.apache.commons:commons-lang3:3.12.0'
48
    implementation 'org.apache.commons:commons-io:1.3.2'
49
}
50
51
application {
52
    mainClass = 'DNAnalyzer.Main'
53
}
54
55
publishing {
56
    repositories {
57
        maven {
58
            name = "Github"
59
            url = uri("https://maven.pkg.github.com/VerisimilitudeX/DNAnalyzer")
60
            credentials {
61
                username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_USERNAME")
62
                password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
63
            }
64
        }
65
    }
66
67
    publications {
68
        register("jar", MavenPublication) {
69
            from(components["java"])
70
            groupId = 'live.dnanalyzer'
71
            artifactId = 'dnanalyzer'
72
            version = '3.0.0-beta.0'
73
            pom {
74
                url.set("https://github.com/VerisimilitudeX/DNAnalyzer.git")
75
            }
76
        }
77
    }
78
}
79
80
test {
81
    useJUnitPlatform()
82
    testLogging {
83
        events "passed", "skipped", "failed"
84
    }
85
86
    maxHeapSize = "2g"
87
}
88
89
jar {
90
    manifest {
91
        attributes 'Main-Class': 'DNAnalyzer.Main'
92
    }
93
94
    duplicatesStrategy = 'exclude'
95
96
    from {
97
        configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
98
    }
99
}
100
101
java {
102
    toolchain {
103
        languageVersion = JavaLanguageVersion.of(17)
104
    }
105
}