Skip to content
This repository was archived by the owner on Oct 21, 2022. It is now read-only.

Commit 5eafabb

Browse files
author
Lucas Malandrino
authored
Merge pull request #3 from JesusCrie/dev
New module "base" that includes core, logger, command.
2 parents a15d7db + 74b8172 commit 5eafabb

File tree

5 files changed

+73
-59
lines changed

5 files changed

+73
-59
lines changed

ModularBot-Base/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
dependencies {
2+
compile "com.jesus-crie:modularbot-core:$version"
3+
compile "com.jesus-crie:modularbot-logger:$version"
4+
compile "com.jesus-crie:modularbot-command:$version"
5+
}

ModularBot-Command/build.gradle

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
1+
dependencies {
2+
compile project(':modularbot-core')
3+
}

ModularBot-Core/build.gradle

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,3 @@ dependencies {
44
testCompile project(':modularbot-command')
55
testCompile project(':modularbot-logger')
66
}
7-
8-
uploadArchives {
9-
repositories {
10-
mavenDeployer {
11-
beforeDeployment {
12-
MavenDeployment deployment -> signing.signPom(deployment)
13-
}
14-
15-
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
16-
authentication(userName: ossrhUsername, password: ossrhPassword)
17-
}
18-
19-
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
20-
authentication(userName: ossrhUsername, password: ossrhPassword)
21-
}
22-
23-
pom.project {
24-
name 'ModularBot - Core'
25-
description 'A java framework based on JDA that helps you create your discord bot.'
26-
packaging 'jar'
27-
url = 'https://github.com/JesusCrie/ModularBot_v2'
28-
29-
scm {
30-
connection = 'scm:git:git://github.com/JesusCrie/ModularBot_v2.git'
31-
developerConnection = 'scm:git:ssh://github.com/JesusCrie/ModularBot_v2.git'
32-
url = 'https://github.com/JesusCrie/ModularBot_v2'
33-
}
34-
35-
licenses {
36-
license {
37-
name = 'GNU General Public License v3.0'
38-
url = 'https://github.com/JesusCrie/ModularBot_v2/blob/master/LICENSE'
39-
}
40-
}
41-
42-
developers {
43-
developer {
44-
id = 'com.jesus_crie'
45-
name = 'Lucas Malandrino'
46-
47-
}
48-
}
49-
50-
}
51-
}
52-
}
53-
}

build.gradle

Lines changed: 63 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
allprojects {
23
apply plugin: 'java'
34
apply plugin: 'maven'
@@ -13,6 +14,10 @@ allprojects {
1314

1415
archivesBaseName = name
1516

17+
ext {
18+
name = 'ModularBot'
19+
}
20+
1621
repositories {
1722
mavenCentral()
1823
jcenter()
@@ -47,23 +52,70 @@ allprojects {
4752
}
4853

4954
project(':modularbot-core') {
50-
dependencies {
51-
compile 'net.dv8tion:JDA:3.6.0_375'
55+
ext.name = 'ModularBot - Core'
56+
project.description = 'A java framework based on JDA that helps you create your discord bot.'
57+
}
5258

53-
testCompile project(':modularbot-command')
54-
}
59+
project(':modularbot-base') {
60+
ext.name = 'ModularBot - Core'
61+
project.description = 'Bundle that includes the modules core, logger and command.'
62+
}
63+
64+
project(':modularbot-logger') {
65+
ext.name = 'ModularBot - Logger'
66+
project.description = 'Module with a default implementation of SLF4J.'
5567
}
5668

5769
project(':modularbot-command') {
58-
dependencies {
59-
compile project(':modularbot-core')
60-
}
70+
ext.name = 'ModularBot - Command'
71+
project.description = 'Module that enable the support of commands.'
6172
}
6273

63-
subprojects {
64-
task testLolMdr {
65-
doLast { task ->
66-
println "$task.project.group:$task.project.name:$task.project.version"
74+
allprojects {
75+
uploadArchives {
76+
repositories {
77+
mavenDeployer {
78+
beforeDeployment {
79+
MavenDeployment deployment -> signing.signPom(deployment)
80+
}
81+
82+
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2/') {
83+
authentication(userName: ossrhUsername, password: ossrhPassword)
84+
}
85+
86+
snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') {
87+
authentication(userName: ossrhUsername, password: ossrhPassword)
88+
}
89+
90+
pom.project {
91+
name project.ext.name
92+
description project.description
93+
packaging 'jar'
94+
url = 'https://github.com/JesusCrie/ModularBot_v2'
95+
96+
scm {
97+
connection = 'scm:git:git://github.com/JesusCrie/ModularBot_v2.git'
98+
developerConnection = 'scm:git:ssh://github.com/JesusCrie/ModularBot_v2.git'
99+
url = 'https://github.com/JesusCrie/ModularBot_v2'
100+
}
101+
102+
licenses {
103+
license {
104+
name = 'GNU General Public License v3.0'
105+
url = 'https://github.com/JesusCrie/ModularBot_v2/blob/master/LICENSE'
106+
}
107+
}
108+
109+
developers {
110+
developer {
111+
id = 'com.jesus_crie'
112+
name = 'Lucas Malandrino'
113+
114+
}
115+
}
116+
117+
}
118+
}
67119
}
68120
}
69121
}

settings.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ include 'ModularBot-Command'
55
findProject(':ModularBot-Command')?.name = 'modularbot-command'
66
include 'ModularBot-Logger'
77
findProject(':ModularBot-Logger')?.name = 'modularbot-logger'
8+
include 'ModularBot-Base'
9+
findProject(':ModularBot-Base')?.name = 'modularbot-base'
810

0 commit comments

Comments
 (0)