This repository was archived by the owner on Sep 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
62 lines (53 loc) · 1.3 KB
/
build.gradle
File metadata and controls
62 lines (53 loc) · 1.3 KB
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
plugins {
// add java library plugin
id 'java-library'
// add maven publish plugin
id 'maven-publish'
}
// configure project
base {
group = 'gay.pancake'
version = '1.0'
}
java {
// configure java compatibility
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_21
// add javadoc and sources jar
withJavadocJar()
withSourcesJar()
}
repositories {
// add maven central repository
mavenCentral()
}
dependencies {
// add jna dependencies
api "net.java.dev.jna:jna:5.13.0"
api "net.java.dev.jna:jna-platform:5.13.0"
}
// add maven publish configuration
publishing {
publications {
// add maven publication
maven(MavenPublication) {
groupId = 'gay.pancake'
artifactId = 'nvidia-reflex-java'
version = '1.0'
from components.java
}
}
// add maven repository
repositories {
// add maven local repository
mavenLocal()
// add mgnetwork repository
maven {
name = "mgnetwork"
url = "https://maven.mgnet.work/main"
credentials {
username = project.findProperty("mgnetworkUsername")
password = project.findProperty("mgnetworkPassword")
}
}
}
}