cold-journalist-66984
01/02/2020, 4:48 PM16:45:41 [ERROR] Invalid scope [scala-platform] in /Users/johndowns/src/play-pants/pants.ini
16:45:41 [ERROR] Invalid scope [publish.jar] in /Users/johndowns/src/play-pants/pants.ini
16:45:41 [ERROR] Invalid scope [ivy] in /Users/johndowns/src/play-pants/pants.ini
16:45:41 [ERROR] Invalid scope [jvm-platform] in /Users/johndowns/src/play-pants/pants.ini
I’m fairly certain that [scala-platfom]
has been renamed to [scala]
, but when I try to change that header, I get a similar error 16:40:18 [ERROR] Invalid scope [scala] in /Users/johndowns/src/play-pants/pants.ini
This is my pants.ini
file
[GLOBAL]
pants_version: 1.16.0
pythonpath: [
'%(buildroot)s/build-support'
]
backend_packages: [
'repositories'
]
[scala]
version: 2.11
[publish.jar]
repos: {
'public': {
'resolver': '<http://oss.sonatype.org|oss.sonatype.org>',
'auth': ':netrc',
'help': 'Configure your ~/.netrc',
}
}
ivy_settings: %(pants_supportdir)s/ivy/ivysettings_for_publishing.xml
[ivy]
# We need a custom ivy profile to grab the optional pgp libs for
# signing artifacts we publish to maven central.
ivy_profile: %(pants_supportdir)s/ivy/ivy.xml
[jvm-platform]
default_platform: java8
platforms: {
'java7': {'source': '7', 'target': '7', 'args': [] },
'java8': {'source': '8', 'target': '8', 'args': [] },
}
Any idea what I’m missing?hundreds-father-404
01/02/2020, 4:51 PM./pants
and deprecations should printcold-journalist-66984
01/02/2020, 4:52 PMhundreds-father-404
01/02/2020, 4:53 PMbackend_packages
to use +[
instead of [
. Right now, you’re over-riding the defaults so the JVM backend is getting unregistered. +[
signals to instead add a new plugin
(Thanks for adding your pants.ini
- super useful for us to help!)cold-journalist-66984
01/02/2020, 5:00 PMbackend_packages
fixed it, but also thank you for the more general advice!