forked from CommonWealthRobotics/mujoco-java
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·117 lines (100 loc) · 2.85 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
/*
* 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.2/userguide/building_java_projects.html
*/
plugins {
id 'eclipse'
id 'java'
id 'maven-publish'
id 'signing'
id 'io.codearte.nexus-staging' version '0.30.0'
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
// Use JUnit test framework.
testImplementation 'junit:junit:4.13.2'
implementation group: 'org.bytedeco', name: 'javacpp', version: '1.5.7'
// https://mvnrepository.com/artifact/javax.xml.bind/jaxb-api
implementation group: 'javax.xml.bind', name: 'jaxb-api', version: '2.3.1'
implementation 'net.codesup.util:jaxb2-rich-contract-plugin:2.1.0'
}
if(JavaVersion.current() != JavaVersion.VERSION_1_8){
throw new GradleException("This build must be run with java 8")
}
group='com.neuronrobotics'
archivesBaseName='mujoco-java'
version = System.getenv("VERSION_SEMVER")
nexusStaging {
packageGroup = 'com.neuronrobotics'
serverUrl='https://oss.sonatype.org/service/local/'
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
publishing {
repositories {
// maven {
// name = 'GitHubPackages'
// url = uri("https://maven.pkg.github.com/CommonWealthRobotics/mujoco-java")
// credentials {
// username = System.getenv("GITHUB_ACTOR")
// password = System.getenv("GITHUB_TOKEN")
// }
// }
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name= 'mujoco java'
packaging ='jar'
// optionally artifactId can be defined here
description ='Java bindings for MuJoCo Physics library'
url= 'http://github.com:CommonWealthRobotics/mujoco-java'
scm {
connection ='scm:git:https://github.com/CommonWealthRobotics/mujoco-java'
developerConnection ='scm:git:git@github.com:CommonWealthRobotics/mujoco-java.git'
url ='https://github.com/CommonWealthRobotics/mujoco-java'
}
licenses {
license {
name= 'The Apache License, Version 2.0'
url ='http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id ='madhephaestus'
name= 'Kevin Harrington'
email= 'kharrington@neuronrobotics.com'
}
}
}
}
}
}
java {
withJavadocJar()
withSourcesJar()
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}