dialogos-project / dialogos

The DialogOS dialog system.
https://www.dialogos.app
GNU General Public License v3.0
20 stars 7 forks source link

dialogos-integration master does not build: #168

Closed timobaumann closed 5 years ago

timobaumann commented 5 years ago

works nicely when I uncomment the alexa-thing. Is the server only available internally?

timo@tcarbon:~/uni/software/dialogos-distribution$ git checkout master
Zu Branch 'master' gewechselt
Ihr Branch ist auf demselben Stand wie 'origin/master'.
timo@tcarbon:~/uni/software/dialogos-distribution$ ./gradlew run

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':run'.
> Could not resolve all files for configuration ':runtimeClasspath'.
   > Could not find com.github.dialogos-project:dialogos-alexa-plugin:2.1.0.
     Searched in the following locations:
         file:/home/timo/.m2/repository/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.pom
         file:/home/timo/.m2/repository/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.jar
         https://jcenter.bintray.com/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.pom
         https://jcenter.bintray.com/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.jar
         https://jitpack.io/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.pom
         https://jitpack.io/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.jar
         http://akci.coli.uni-saarland.de/artifactory/external/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.pom
         http://akci.coli.uni-saarland.de/artifactory/external/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/dialogos-alexa-plugin-2.1.0.jar
     Required by:
         project :

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 3s
alexanderkoller commented 5 years ago

Oops. Looks there's something wrong with the buildfile for the Alexa plugin: https://jitpack.io/com/github/dialogos-project/dialogos-alexa-plugin/2.1.0/build.log

I'll look into it.

alexanderkoller commented 5 years ago

I've contained the buildfile bug a bit. Now it fails differently:

The failure of gradle install can be reproduced locally, i.e. does not require Jitpack to be reproduced. I would be grateful for anyone who can find the problem - as far as I can tell, the buildfile is basically the same as for other plugins, which compile correctly.

Here's the error message:

koller@dhcp104-211 ~/D/w/d/dialogos-alexa-plugin> ./gradlew install
> Task :install FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':install'.
> Could not publish configuration 'archives'
   > Could not write to file '/Users/koller/Documents/workspace/dialogos/dialogos-alexa-plugin/build/poms/pom-default.xml'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.2/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 0s
7 actionable tasks: 1 executed, 6 up-to-date
akoehn commented 5 years ago

I'll have a look.

akoehn commented 5 years ago

Ok, it seems like it works fine when removing the runtime dependency on dialogos. I don't know why it was there in the first place as there is already a compile dependency which implies a runtime dependency.

@alexanderkoller I don't know how to test the plugin & don't have rights to the alexa repository, so can you test this by removing the following?

runtime(group:'com.github.dialogos-project', name:'dialogos', version:'2.1.0') {
    exclude module: 'DialogOS_SphinxPlugin'
    exclude module: 'DialogOS_MaryTTSPlugin'
    exclude module: 'TTSClient'
    exclude module: 'SpeechClient'
    exclude module: 'RecognizerClient'
    exclude module: 'com.clt.audio'
  }
alexanderkoller commented 5 years ago

That fixed it, thanks.