-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
63 lines (54 loc) · 1.31 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
/*
* Copyright (c) CP4J Project
*/
plugins {
id 'java'
id 'maven-publish'
}
apply plugin: 'maven-publish'
apply plugin: 'idea'
group 'com.vb.cp4j'
version '0.1'
repositories {
mavenCentral()
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/duc0/CP4J")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("USERNAME")
password = project.findProperty("gpr.key") ?: System.getenv("TOKEN")
}
}
}
dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
implementation fileTree(dir: 'libs/', include: '*.jar')
}
sourceSets {
main {
java.srcDirs += "src/generated/java"
java.srcDirs += "src/tasks"
}
}
publishing {
publications {
gpr(MavenPublication) {
from(components.java)
}
maven(MavenPublication) {
groupId = 'com.vb.cp4j'
artifactId = 'cp4j'
version = "0.1"
from components.java
pom {
name = 'CP4J'
description = 'A high performant, modularized data structures and algorithm Java library for programming contests.'
}
}
}
}
idea {
module {
generatedSourceDirs += file("src/generated/java")
}
}