bnd gradle build fail

94 views
Skip to first unread message

jan.winte...@gmail.com

unread,
Apr 10, 2015, 9:38:24 AM4/10/15
to bndtool...@googlegroups.com
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: http://gradle.org/docs/2.2.1/userguide/gradle_daemon.html.

FAILURE: Build failed with an exception.

* Where:
Settings file '/Users/winter/Git/bnd/settings.gradle' line: 27

* What went wrong:
A problem occurred evaluating settings 'bnd'.
> Could not find method all() for arguments [settings_72n0zzmjjljvtmg8vd362m722$_run_closure1_closure4_closure8_closure9@159b1d9c] on org.gradle.api.internal.artifacts.dsl.DefaultComponentMetadataHandler_Decorated@4b1e41bd.

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

BUILD FAILED

Total time: 3.542 secs

---------------------------------

INFO: git-hash=4371a594a3d04d519680dd1c4c4cb783285e315d

BJ Hargrave

unread,
Apr 10, 2015, 9:44:19 AM4/10/15
to bndtool...@googlegroups.com
You either need to use gradlew included in the git repo or use gradle 2.3 or later. 

-- 
BJ

--
You received this message because you are subscribed to the Google Groups "bndtools-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bndtools-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jan.winte...@gmail.com

unread,
Apr 10, 2015, 10:21:11 AM4/10/15
to bndtool...@googlegroups.com
I switched to gradle/2.3

BUILD FAILED with anohter error:
----------------------------------------------
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: http://gradle.org/docs/2.3/userguide/gradle_daemon.html.
:aQute.libg:compileJava
warning: [options] bootstrap class path not set in conjunction with -source 1.7
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/collections/ExtList.java:20: warning: '_' used as an identifier
public ExtList(Collection<T> _) {
                            ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/collections/ExtList.java:21: warning: '_' used as an identifier
super(_);
     ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/collections/ExtList.java:24: warning: '_' used as an identifier
public ExtList(Iterable<T> _) {
                          ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/collections/ExtList.java:25: warning: '_' used as an identifier
for ( T t : _)
           ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/consoleapp/AbstractConsoleApp.java:124: warning: '_' used as an identifier
List<String> arguments = opts._();
                             ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/getopt/CommandLine.java:603: warning: '_' used as an identifier
List<String> arguments = opts._();
                             ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/getopt/Options.java:6: warning: '_' used as an identifier
List<String> _();
            ^
  (use of '_' as an identifier might not be supported in releases after Java SE 8)
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/collections/MultiMap.java:88: error: name clash: remove(K,V) in MultiMap and remove(Object,Object) in HashMap have the same erasure, yet neither overrides the other
public boolean remove(K key, V value) {
              ^
  where K,V are type-variables:
    K extends Object declared in class MultiMap
    V extends Object declared in class MultiMap
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/json/FileHandler.java:21: error: reference to Base64 is ambiguous
Base64.encode(in, app);
^
  both class aQute.lib.base64.Base64 in aQute.lib.base64 and class java.util.Base64 in java.util match
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/json/FileHandler.java:35: error: reference to Base64 is ambiguous
Base64.decode(new StringReader(s), fout);
^
  both class aQute.lib.base64.Base64 in aQute.lib.base64 and class java.util.Base64 in java.util match
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/json/ByteArrayHandler.java:81: error: reference to Base64 is ambiguous
return Base64.decodeBase64(sb.toString());
      ^
  both class aQute.lib.base64.Base64 in aQute.lib.base64 and class java.util.Base64 in java.util match
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/converter/Converter.java:75: error: reference to Base64 is ambiguous
return Base64.encodeBase64((byte[]) o);
      ^
  both class aQute.lib.base64.Base64 in aQute.lib.base64 and class java.util.Base64 in java.util match
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/converter/Converter.java:125: error: reference to Base64 is ambiguous
return Base64.decodeBase64(s);
      ^
  both class aQute.lib.base64.Base64 in aQute.lib.base64 and class java.util.Base64 in java.util match
/Users/winter/Git/bnd/aQute.libg/src/aQute/lib/converter/Converter.java:213: error: reference to Base64 is ambiguous
return Base64.decodeBase64(input);
      ^
  both class aQute.lib.base64.Base64 in aQute.lib.base64 and class java.util.Base64 in java.util match
7 errors
8 warnings
:aQute.libg:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':aQute.libg:compileJava'.
> Compilation failed; see the compiler error output for details.

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

BUILD FAILED

Total time: 10.068 secs

Peter Kriens

unread,
Apr 10, 2015, 10:52:38 AM4/10/15
to bndtool...@googlegroups.com
You’re using Java 1.8 as the compiler … and that is not backward source compatible :-(

bnd is a 1.6 project

Kind regards,

Peter Kriens

BJ Hargrave

unread,
Apr 10, 2015, 2:30:54 PM4/10/15
to bndtool...@googlegroups.com
Actually 1.7 now. 

-- 
BJ

Jan Winter google

unread,
Apr 11, 2015, 4:04:03 AM4/11/15
to bndtool...@googlegroups.com
Thanks. 

Von meinem iPhone gesendet
Reply all
Reply to author
Forward
0 new messages