How to use this with Gradle?
dmitrykolesnikovich opened this issue · 5 comments
How about Gradle?
compile 'com.infiniteautomation:modbus4j:3.0.3'
does not work for me.
I think you should add maven repository for modbus4j by yourself. follow below
repositories {
maven {
url "https://maven.mangoautomation.net/repository/ias-release/"
}
}
Does did work for you @dmitrykolesnikovich ???
Found this via google, and since it's still open, the following works for sure:
repositories {
mavenCentral()
maven {
url 'https://maven.mangoautomation.net/repository/ias-snapshot/'
}
maven {
url 'https://maven.mangoautomation.net/repository/ias-release/'
}
}
dependencies {
compile 'com.infiniteautomation:modbus4j:3.0.3'
}
So, yes, works, I can import and use the module and compile.
I haven't tried without the snapshot
repository, it might also work without it.
The repository you need to include depends on what version you are trying to use in your project:
For any non-release version of Modbus4J you will need to include the snapshot
repo. So you won't need it for
dependencies {
compile 'com.infiniteautomation:modbus4j:3.0.3'
}
but you would need it for
dependencies {
compile 'com.infiniteautomation:modbus4j:3.0.3-SNAPSHOT'
}
Sorry for delay, by adding repo as @otto-dev said I fixed an issue.