diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index b5b4825..4c40a8d 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,9 @@
-
+
+
+
@@ -45,8 +47,10 @@
+
+
@@ -62,4 +66,15 @@
+
+
+
\ No newline at end of file
diff --git a/build.gradle b/build.gradle
index 7dd6c24..5971adb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -36,10 +36,49 @@ configurations {
dependencies {
api('com.github.CST-Group:cst:0.7.0')
+ testImplementation 'com.1stleg:jnativehook:2.1.0'
+ testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2'
}
+task javadocJar(type: Jar) {
+ classifier = 'javadoc'
+ from javadoc
+ from {
+ configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
+ }
+}
+task sourcesJar(type: Jar) {
+ classifier = 'sources'
+ from sourceSets.main.allSource
+ from {
+ configurations.extraLibs.collect { it.isDirectory() ? it : zipTree(it) }
+ }
+}
+task uberJar(type: Jar) {
+ duplicatesStrategy = DuplicatesStrategy.EXCLUDE
+ archiveClassifier = 'full'
+ from sourceSets.main.output
+ dependsOn configurations.runtimeClasspath
+ from {
+ configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
+ }
+ exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA'
+}
+artifacts
+ {
+ archives javadocJar, sourcesJar, uberJar
+ }
+
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ from components.java
+ }
+ }
+}
+
jacocoTestReport {
reports {
xml.required = true