Skip to content

Commit 842bbe6

Browse files
authored
Adding silent mode (#44)
1 parent 45b979d commit 842bbe6

20 files changed

Lines changed: 193 additions & 181 deletions

File tree

build.gradle

Lines changed: 8 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
2-
buildscript {
3-
repositories {
4-
maven {
5-
url "https://plugins.gradle.org/m2/"
6-
}
7-
}
1+
plugins {
2+
id "scala"
3+
id "maven-publish"
4+
id "distribution"
5+
id 'java-library'
86
}
97

108
subprojects {
119

12-
apply plugin: "java"
13-
apply plugin: "scala"
10+
apply plugin: 'java-library'
1411
apply plugin: 'maven-publish'
12+
apply plugin: 'scala'
1513

1614
group 'org.mule.weave.native'
1715
version nativeVersion
@@ -27,30 +25,6 @@ subprojects {
2725
targetCompatibility = '11'
2826
}
2927

30-
31-
publishing {
32-
publications.all {
33-
pom.withXml {
34-
asNode().dependencies.'*'.findAll() {
35-
it.scope.text() == 'runtime' && project.configurations.compile.allDependencies.find { dep ->
36-
dep.name == it.artifactId.text()
37-
}
38-
}.each { it.scope*.value = 'compile' }
39-
}
40-
}
41-
publications {
42-
mavenJava(MavenPublication) {
43-
from components.java
44-
}
45-
}
46-
repositories {
47-
maven {
48-
name "mule-releases"
49-
url "https://repository-master.mulesoft.org/nexus/content/repositories/${project.version.endsWith('-SNAPSHOT') ? 'snapshots/' : 'releases/'}"
50-
}
51-
}
52-
}
53-
5428
repositories {
5529
// mavenLocal()
5630
mavenCentral()
@@ -71,6 +45,6 @@ subprojects {
7145

7246

7347
dependencies {
74-
compile group: 'org.scala-lang', name: 'scala-library', version: scalaVersion
48+
implementation group: 'org.scala-lang', name: 'scala-library', version: scalaVersion
7549
}
7650
}

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ ioVersion=1.0.0-SNAPSHOT
55
graalvmVersion=22.0.0.2
66
#Libaries
77
scalaTestVersion=3.0.1
8-
scalaTestPluginVersion=0.25
8+
scalaTestPluginVersion=0.32
99

1010
org.gradle.jvmargs=-Dfile.encoding=utf-8

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip

native-cli-integration-tests/build.gradle

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ plugins {
44

55

66
dependencies {
7-
compile project(":native-cli")
8-
testCompile group: 'org.scalatest', name: 'scalatest_2.12', version: scalaTestVersion
9-
testCompile group: 'org.mule.weave', name: 'parser', version: weaveVersion
10-
testCompile group: 'org.mule.weave', name: 'test-helpers', version: weaveVersion
11-
testCompile "org.mule.weave:runtime:${weaveVersion}:test@zip"
12-
testCompile "org.mule.weave:yaml-module:${weaveVersion}:test@zip"
13-
testCompile 'commons-io:commons-io:2.11.0'
14-
testRuntime 'org.pegdown:pegdown:1.6.0'
7+
api project(":native-cli")
8+
testImplementation group: 'org.scalatest', name: 'scalatest_2.12', version: scalaTestVersion
9+
testImplementation group: 'org.mule.weave', name: 'parser', version: weaveVersion
10+
testImplementation group: 'org.mule.weave', name: 'test-helpers', version: weaveVersion
11+
testImplementation "org.mule.weave:runtime:${weaveVersion}:test@zip"
12+
testImplementation "org.mule.weave:yaml-module:${weaveVersion}:test@zip"
13+
testImplementation 'commons-io:commons-io:2.11.0'
14+
testRuntimeOnly 'org.pegdown:pegdown:1.6.0'
15+
16+
testImplementation group: 'com.sun.mail', name: 'jakarta.mail', version: '1.6.4'
17+
testImplementation group: 'xerces', name: 'xercesImpl', version: '2.12.1'
18+
testImplementation group: 'xalan', name: 'xalan', version: '2.7.2'
19+
testImplementation group: 'commons-beanutils', name: 'commons-beanutils', version: '1.9.4'
1520
}
1621

1722
test.dependsOn(":native-cli:nativeCompile")

0 commit comments

Comments
 (0)