-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
121 lines (98 loc) · 3.12 KB
/
build.gradle
File metadata and controls
121 lines (98 loc) · 3.12 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
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
118
119
120
121
/*
* This build file was generated by the Gradle 'init' task.
*
* This generated file contains a sample Java Library project to get you started.
* For more details take a look at the Java Libraries chapter in the Gradle
* user guide available at https://docs.gradle.org/4.3/userguide/java_library_plugin.html
*/
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1'
}
}
plugins {
id 'io.codearte.nexus-staging' version '0.11.0'
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'com.bmuschko.nexus'
apply plugin: 'application'
archivesBaseName = 'example-hftish-alpaca-java'
group = 'io.github.mainstringargs'
version = '1.0.0'
sourceCompatibility = '1.8'
[compileJava, compileTestJava]*.options*.encoding = 'UTF-8'
// In this section you declare where to find the dependencies of your project
repositories {
mavenCentral()
jcenter()
}
dependencies {
// Use JUnit test framework
testImplementation 'junit:junit:4.12'
compile group: 'org.slf4j', name:'slf4j-api', version: '1.7.25'
compile group: 'org.slf4j', name:'slf4j-log4j12', version: '1.7.25'
compile "io.github.mainstringargs:alpaca-java:5.0.12"
compile 'info.picocli:picocli:4.0.0-alpha-3'
}
/*
jar {
manifest {
attributes 'Main-Class': 'com.mainstringargs.GradleProjectBootstrap'
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
}
*/
modifyPom {
project {
name 'example-hftish-alpaca-java'
description 'Example HFTish Alpaca Java.'
url 'https://github.com/mainstringargs/example-hftish-alpaca-java'
inceptionYear '2018'
scm {
url 'https://github.com/mainstringargs/example-hftish-alpaca-java'
connection 'https://github.com/mainstringargs/example-hftish-alpaca-java.git'
developerConnection 'https://github.com/mainstringargs/example-hftish-alpaca-java.git'
}
licenses {
license {
name 'MIT License'
url 'https://opensource.org/licenses/MIT'
distribution 'repo'
}
}
developers {
developer {
id 'mainstringargs'
name 'main(String[] args)'
email 'mainstringargs@github.io'
}
}
}
}
extraArchive {
sources = true
tests = true
javadoc = true
}
nexus {
sign = true
repositoryUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
snapshotRepositoryUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
nexusStaging {
packageGroup = "io.github.mainstringargs" //optional if packageGroup == project.getGroup()
}
if (hasProperty('buildScan')) {
buildScan { licenseAgreementUrl = 'https://gradle.com/terms-of-service'; licenseAgree = 'yes' }
}
mainClassName = 'io.github.mainstringargs.alpaca.hftish.Driver'
run {
args = ["--symbol", "AMD", "--quantity", "800"]
}