forked from j-asefa/slsqp4j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (76 loc) · 2.48 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
defaultTasks 'clean', 'build', 'test'
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:5.0.0'
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
subprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'c'
apply plugin: 'checkstyle'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'checkstyle'
apply plugin: 'maven-publish'
apply plugin: 'com.bmuschko.nexus'
archivesBaseName = 'slsqp4j'
group = "com.skew.slsqp4j"
version = platformVersion
repositories {
mavenLocal()
mavenCentral()
jcenter()
}
modifyPom {
project {
name 'slsqp4j'
description 'A JVM wrapper for the popular SLSQP optimizer'
url 'https://github.com/skew-markets/slsqp4j'
inceptionYear '2020'
scm {
url 'https://github.com/skew-markets/slsqp4j'
connection 'scm:https://github.com/skew-markets/slsqp4j.git'
developerConnection 'scm:git://github.com/skew-markets/slsqp4j.git'
}
licenses {
license {
name 'BSD 3-Clause "New" or "Revised" License'
url 'https://spdx.org/licenses/BSD-3-Clause.html'
}
}
developers {
developer {
id 'jamesasefa'
name 'James Asefa'
email '[email protected]'
}
}
}
}
extraArchive {
sources = true
javadoc = false
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
checkstyle {
toolVersion = checkstyleVersion
configDir = file("$rootDir/config/checkstyle")
}
sourceCompatibility = 1.8
dependencies {
checkstyle group: 'com.puppycrawl.tools', name: 'checkstyle', version: checkstyleVersion
testCompile group: 'org.mockito', name: 'mockito-junit-jupiter', version: mockitoVersion
testCompile group: 'org.junit.jupiter', name: 'junit-jupiter', version: junitVersion
}
}