Skip to content

Commit

Permalink
Replaced compile by api and implementation declarations. Moved to jav…
Browse files Browse the repository at this point in the history
…a-library plugin. https://docs.gradle.org/current/userguide/java_library_plugin.html. Known issue: The IvyArtifactRepository.layout(String, Closure) method has been deprecated. This warning indicates that gradle_node_plugin won't on gradle 6. node-gradle/gradle-node-plugin#2
  • Loading branch information
cleberjamaral committed Feb 4, 2020
1 parent 166ac49 commit 7dd5e0f
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,47 +6,44 @@
*/

plugins {
id "java-library"
id "eclipse"
id "maven-publish"
id "com.moowork.node" version "1.3.1"
}

defaultTasks 'run'

apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'maven-publish'


apply plugin: 'base' /*used by moowork node plugin*/

group 'org.jacamo'
version '0.4-SNAPSHOT'
sourceCompatibility = 1.8
targetCompatibility = 1.8

java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

repositories {
mavenCentral()
maven { url "http://jacamo.sourceforge.net/maven2" }
maven { url "https://raw.github.com/jacamo-lang/mvn-repo/master" }
maven { url "https://jade.tilab.com/maven/" }
flatDir {
dirs 'lib'
}

}

dependencies {
compile group: 'org.jacamo' , name: 'jacamo' , version: '0.9-SNAPSHOT' , changing: true , transitive: true
compile 'org.jacamo:jacamo-rest:0.3-SNAPSHOT'
api group: 'org.jacamo' , name: 'jacamo' , version: '0.9-SNAPSHOT' , changing: true , transitive: true
api 'org.jacamo:jacamo-rest:0.3-SNAPSHOT'

//websockets for simulations
compile 'javax.websocket:javax.websocket-api:1.1'
compile 'org.glassfish.tyrus:tyrus-server:1.1'
compile 'org.glassfish.tyrus:tyrus-container-grizzly:1.1'
implementation 'javax.websocket:javax.websocket-api:1.1'
implementation 'org.glassfish.tyrus:tyrus-server:1.1'
implementation 'org.glassfish.tyrus:tyrus-container-grizzly:1.1'

// https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit
compile group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.6.0.201912101111-r'
implementation 'org.eclipse.jgit:org.eclipse.jgit:5.6.0.201912101111-r'

// https://mvnrepository.com/artifact/net.openhft/compiler
compile group: 'net.openhft', name: 'compiler', version: '2.3.1'
implementation 'net.openhft:compiler:2.3.1'
}

sourceSets {
Expand Down

0 comments on commit 7dd5e0f

Please sign in to comment.