Skip to content
This repository was archived by the owner on Apr 22, 2025. It is now read-only.

Commit cc9fdbe

Browse files
author
hainguyen
committed
* Fix issue of not creating the project with MySQL 8
* Minor issues of Kotlin nullable object
1 parent 6fc0d35 commit cc9fdbe

File tree

417 files changed

+6905
-6876
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

417 files changed

+6905
-6876
lines changed

mycollab-app-community/src/main/config/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ app:
77
linkedinUrl: http://www.linkedin.com/company/mycollab
88

99
server:
10-
apiUrl: https://api.mycollab.com/api/
10+
apiUrl: http://api.mycollab.com/api/
1111
port: 8080
1212
storageSystem: file
1313
siteUrl: http://%s:%d

mycollab-app-community/src/main/docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ADD staging/bin /usr/share/mycollab/bin
77
ADD staging/config /usr/share/mycollab/config
88
ADD staging/i18n /usr/share/mycollab/i18n
99
# Add Maven dependencies (not shaded into the artifact; Docker-cached)
10-
ADD target/staging/lib /usr/share/mycollab/lib
10+
ADD staging/lib /usr/share/mycollab/lib
1111
# Add the service itself
1212
ADD staging/executor.jar /usr/share/mycollab/executor.jar
1313

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
version: '3.1'
22
services:
3+
hlsoft-mysql:
4+
image: mysql:latest
5+
restart: always
6+
hostname: mysql
7+
command: mysqld --default-authentication-plugin=mysql_native_password
8+
ports:
9+
- "3306:3306"
10+
environment:
11+
MYSQL_ROOT_PASSWORD: esofthead321
12+
MYSQL_DATABASE: mycollab
313
hlsoft-app:
4-
image: mycollab
14+
image: mycollab/mycollab
515
environment:
616
- SPRING_PROFILES_ACTIVE=prod
717
- JAVA_OPTS=-Djgroups.tcp.address=NON_LOOPBACK -Djava.net.preferIPv4Stack=true -Xmx2g -Xms2g
818
- ES_JAVA_OPTS= -Xms750m -Xmx750m
19+
tty: true
920
ports:
1021
- 8080:8080
11-
hlsoft-mysql:
12-
image: mysql:5.6
13-
restart: always
14-
environment:
15-
MYSQL_ROOT_PASSWORD: esofthead321
16-
MYSQL_DATABASE: mycollab
22+
links:
23+
- hlsoft-mysql
24+
depends_on:
25+
- hlsoft-mysql
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
version: '3.1'
22
services:
33
hlsoft-mysql:
4-
image: mysql:5.6
4+
image: mysql:8.0.11
5+
restart: always
6+
hostname: mysql
7+
command: mysqld --default-authentication-plugin=mysql_native_password
8+
ports:
9+
- "3306:3306"
510
environment:
6-
MYSQL_ROOT_PASSWORD: esofthead321
11+
MYSQL_ROOT_PASSWORD: mycollab123
712
MYSQL_DATABASE: mycollab

mycollab-caching/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<dependency>
3434
<groupId>org.infinispan</groupId>
3535
<artifactId>infinispan-spring-boot-starter-embedded</artifactId>
36-
<version>2.0.0.Alpha1</version>
36+
<version>2.0.0.Beta1</version>
3737
</dependency>
3838

3939
</dependencies>

mycollab-config/src/main/java/com/mycollab/configuration/EmailConfiguration.kt

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,8 @@
1616
*/
1717
package com.mycollab.configuration
1818

19-
import com.mycollab.core.MyCollabException
2019
import com.mycollab.core.arguments.ValuedBean
2120
import com.mycollab.core.utils.StringUtils
22-
2321
import javax.validation.constraints.Digits
2422
import javax.validation.constraints.NotNull
2523

@@ -32,19 +30,19 @@ import javax.validation.constraints.NotNull
3230
class EmailConfiguration internal constructor(@field:NotNull var host: String?,
3331
@field:NotNull var user: String?,
3432
@field:NotNull var password: String?,
35-
port: Int, isStartTls: Boolean, isSsl: Boolean, notifyEmail: String) : ValuedBean() {
33+
port: Int, startTls: Boolean, ssl: Boolean, notifyEmail: String) : ValuedBean() {
3634

3735
@Digits(integer = 6, fraction = 0)
3836
var port: Int = 25
3937

40-
var isStartTls = false
41-
var isSsl = false
38+
var startTls = false
39+
var ssl = false
4240
var notifyEmail: String? = null
4341

4442
init {
4543
this.port = port
46-
this.isStartTls = isStartTls
47-
this.isSsl = isSsl
44+
this.startTls = startTls
45+
this.ssl = ssl
4846
this.notifyEmail = if (StringUtils.isBlank(notifyEmail)) user else notifyEmail
4947
}
5048
}

mycollab-config/src/main/java/com/mycollab/configuration/ServerConfiguration.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,8 @@ open class ServerConfiguration(var storageSystem: String = STORAGE_FILE, var por
4141

4242
companion object {
4343

44-
@JvmField
45-
val STORAGE_FILE = "file"
44+
const val STORAGE_FILE = "file"
4645

47-
@JvmField
48-
val STORAGE_S3 = "s3"
46+
const val STORAGE_S3 = "s3"
4947
}
5048
}

mycollab-config/src/main/java/com/mycollab/configuration/logging/MailAppender.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class MailAppender : SMTPAppender() {
4545
this.setSMTPPort(conf.port)
4646
this.username = conf.user
4747
this.password = conf.password
48-
this.isSTARTTLS = conf.isStartTls
48+
this.isSTARTTLS = conf.startTls
4949
this.from = conf.notifyEmail
5050
this.addTo(SiteConfiguration.getSendErrorEmail())
5151
super.start()

mycollab-core/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,19 +49,19 @@
4949
<dependency>
5050
<groupId>org.apache.tika</groupId>
5151
<artifactId>tika-core</artifactId>
52-
<version>1.16</version>
52+
<version>1.18</version>
5353
</dependency>
5454

5555
<dependency>
5656
<groupId>org.jsoup</groupId>
5757
<artifactId>jsoup</artifactId>
58-
<version>1.10.3</version>
58+
<version>1.11.3</version>
5959
</dependency>
6060

6161
<dependency>
6262
<groupId>org.ocpsoft.prettytime</groupId>
6363
<artifactId>prettytime</artifactId>
64-
<version>4.0.1.Final</version>
64+
<version>4.0.2.Final</version>
6565
</dependency>
6666

6767
<dependency>
@@ -87,7 +87,7 @@
8787
<dependency>
8888
<groupId>uk.com.robust-it</groupId>
8989
<artifactId>cloning</artifactId>
90-
<version>1.9.6</version>
90+
<version>1.9.10</version>
9191
</dependency>
9292
</dependencies>
9393
</project>

mycollab-core/src/main/java/com/mycollab/core/utils/FileUtils.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object FileUtils {
3737

3838
init {
3939
val userFolder = System.getProperty("user.dir")
40-
val homeDir = File(userFolder + "/.mycollab")
40+
val homeDir = File("$userFolder/.mycollab")
4141
val userHomeDir = File(System.getProperty("user.home") + "/.mycollab")
4242
if (userHomeDir.exists()) {
4343
_homeFolder = try {
@@ -72,7 +72,7 @@ object FileUtils {
7272
@JvmStatic
7373
fun readFileAsPlainString(fileName: String): String {
7474
try {
75-
val pricingFile = FileUtils.getDesireFile(userFolder, fileName, "src/main/conf/" + fileName)
75+
val pricingFile = FileUtils.getDesireFile(userFolder, fileName, "src/main/conf/$fileName")
7676
return when {
7777
pricingFile != null -> String(Files.readAllBytes(pricingFile.toPath()), Charset.forName("UTF-8"))
7878
else -> ""

0 commit comments

Comments
 (0)