Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
image: java:8-jdk

stages:
- build
- deploy

build:
tags:
- docker
image: java:8-jdk
stage: build
artifacts:
name: "stratacode"
expire_in: 1 month
paths:
- coreRuntime/build/libs
- fullRuntime/build/libs
- system/build/libs
script:
- ./gradlew

deploy:
tags:
- docker
stage: deploy
script:
- ./gradlew uploadArchives
18 changes: 17 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,22 @@ subprojects {
}
}
}

project.uploadArchives {
repositories {
mavenDeployer {
repository(url: System.getenv('MAVEN_DEPLOYER_REPOSITORY')) {
authentication(userName: System.getenv('MAVEN_DEPLOYER_USERNAME'), password: System.getenv('MAVEN_DEPLOYER_PASSWORD'))
}
snapshotRepository(url: System.getenv('MAVEN_DEPLOYER_SNAPSHOT_REPOSITORY')) {
authentication(userName: System.getenv('MAVEN_DEPLOYER_USERNAME'), password: System.getenv('MAVEN_DEPLOYER_PASSWORD'))
}
pom.version = version
// pom.artifactId is set automatically for each project (coreRuntime, fullRuntime, system)
pom.groupId = stratacodeGroup
}
}
}
}

project(':coreRuntime') {
Expand All @@ -82,6 +98,6 @@ project(':system') {
apply plugin: 'java'
dependencies {
compile project(':fullRuntime')
compile 'jline:jline:1.0'
compile 'jline:jline:2.14.5'
}
}
24 changes: 13 additions & 11 deletions fullRuntime/src/sc/util/FileUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -745,16 +745,18 @@ public static String makeCanonical(String dir) throws IOException {
}

public static String makePathAbsolute(String path) {
String[] pathDirs = StringUtil.split(path, FileUtil.PATH_SEPARATOR_CHAR);
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String pathDir:pathDirs) {
if (!first)
sb.append(FileUtil.PATH_SEPARATOR_CHAR);
else
first = false;
sb.append(FileUtil.makeAbsolute(pathDir));
}
return sb.toString();
path = path.replace(":\\", "|"); // replace windows absolute paths of the form C:\ since the split operation below relies on ':' as a separator
String[] pathDirs = StringUtil.split(path, ':');
StringBuilder sb = new StringBuilder();
boolean first = true;
for (String pathDir : pathDirs) {
if (!first) {
sb.append(FileUtil.PATH_SEPARATOR_CHAR);
} else {
first = false;
}
sb.append(FileUtil.makeAbsolute(pathDir.replace("|", ":\\"))); // restore windows absolute paths
}
return sb.toString();
}
}
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Tue Apr 18 08:26:50 JST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-bin.zip
172 changes: 172 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

84 changes: 84 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading