Comments (14)
try separate config for scaladoc execution
https://random-maven.github.io/scalor-maven-plugin/2.12/scaladoc-main-mojo.html#zincRegexAnyScala
<executions>
<execution>
<goals>
<goal>compile-main</goal>
</goals>
</execution>
<execution>
<goals>
<goal>scaladoc-main</goal>
</goals>
<configuration>
<zincRegexAnyScala>...</zincRegexAnyScala>
</configuration>
</execution>
</executions>
from scalor-maven-plugin.
Changing that setting doesn't seem to do anything - all scala files are still passed to the scaladoc invocation, even if I set the regex to something completely bogus. Searching this repository it doesn't look like that config is actually used in the plugin code at all?
from scalor-maven-plugin.
ok, thinking
from scalor-maven-plugin.
- now using separate regex include/exclude for relevant goals
<formatRegexScalaInclude>...</formatRegexScalaInclude>
<formatRegexScalaExclude>...</formatRegexScalaExclude>
<compileRegexScalaInclude>...</compileRegexScalaInclude>
<compileRegexScalaExclude>...</compileRegexScalaExclude>
<scaladocRegexScalaInclude>...</scaladocRegexScalaInclude>
<scaladocRegexScalaExclude>...</scaladocRegexScalaExclude>
- please try fresh 1.4.0
https://bintray.com/random-maven/maven/scalor-maven-plugin_2.12
from scalor-maven-plugin.
Hi, the exclude config still doesn't seem to do anything. E.g. even if I set <scaladocRegexScalaExclude>.*</scaladocRegexScalaExclude>
it's still passing all my source files into Scaladoc:
[INFO] [scaladoc-macro] [DBUG] Calling Scaladoc with arguments:
-d
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\site\scaladoc-main
-bootclasspath
C:\Users\md401\.m2\repository\org\scala-lang\scala-library\2.12.4\scala-library-2.12.4.jar
-classpath
C:\Users\md401\.m2\repository\org\typelevel\cats-free_2.12\1.0.0-RC2\cats-free_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-macros_2.12\1.0.0-RC2\cats-macros_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-core_2.12\1.0.0-RC2\cats-core_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-kernel_2.12\1.0.0-RC2\cats-kernel_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\machinist_2.12\0.6.2\machinist_2.12-0.6.2.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar;C:\Users\md401\.m2\repository\org\typelevel\kittens_2.12\1.0.0-RC1\kittens_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\alleycats-core_2.12\1.0.0-RC1\alleycats-core_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\export-hook_2.12\1.2.0\export-hook_2.12-1.2.0.jar;C:\Users\md401\.m2\repository\com\chuusai\shapeless_2.12\2.3.2\shapeless_2.12-2.3.2.jar;C:\Users\md401\.m2\repository\org\typelevel\macro-compat_2.12\1.1.1\macro-compat_2.12-1.1.1.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-compiler\2.12.4\scala-compiler-2.12.4.jar;C:\Users\md401\.m2\repository\org\scala-lang\modules\scala-xml_2.12\1.0.6\scala-xml_2.12-1.0.6.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar
model contains 1 documentable templates
[INFO] [scaladoc] Invoking goal: scaladoc-main
[INFO] [scaladoc-main] Generating Scaladoc: C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\site\scaladoc-main
[INFO] [scaladoc-main] Invoking Zinc compiler: Scalor [60d975382eaf68ec152bc305f82611e8]: 2.12.4
[INFO] [scaladoc-main] [DBUG] Returning already retrieved and compiled bridge: C:\Users\md401\.m2\repository\org\scala-sbt\compiler-bridge_2.12\1.1.1\compiler-bridge_2.12-1.1.1.jar.
[INFO] [scaladoc-main] [DBUG] Calling Scaladoc with arguments:
-d
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\site\scaladoc-main
-bootclasspath
C:\Users\md401\.m2\repository\org\scala-lang\scala-library\2.12.4\scala-library-2.12.4.jar
-classpath
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\target\classes;C:\Users\md401\.m2\repository\org\typelevel\cats-free_2.12\1.0.0-RC2\cats-free_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-macros_2.12\1.0.0-RC2\cats-macros_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-core_2.12\1.0.0-RC2\cats-core_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\cats-kernel_2.12\1.0.0-RC2\cats-kernel_2.12-1.0.0-RC2.jar;C:\Users\md401\.m2\repository\org\typelevel\machinist_2.12\0.6.2\machinist_2.12-0.6.2.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar;C:\Users\md401\.m2\repository\org\typelevel\kittens_2.12\1.0.0-RC1\kittens_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\alleycats-core_2.12\1.0.0-RC1\alleycats-core_2.12-1.0.0-RC1.jar;C:\Users\md401\.m2\repository\org\typelevel\export-hook_2.12\1.2.0\export-hook_2.12-1.2.0.jar;C:\Users\md401\.m2\repository\com\chuusai\shapeless_2.12\2.3.2\shapeless_2.12-2.3.2.jar;C:\Users\md401\.m2\repository\org\typelevel\macro-compat_2.12\1.1.1\macro-compat_2.12-1.1.1.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-compiler\2.12.4\scala-compiler-2.12.4.jar;C:\Users\md401\.m2\repository\org\scala-lang\modules\scala-xml_2.12\1.0.6\scala-xml_2.12-1.0.6.jar;C:\Users\md401\.m2\repository\org\scala-lang\scala-reflect\2.12.4\scala-reflect-2.12.4.jar
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\EitherKSupport.scala
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\FunctorK.scala
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\FunctorKK.scala
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\LazyFunctionK.scala
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\LazyFunctionKK.scala
C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\package.scala
[ERROR] [scaladoc-main] [FAIL] [Error] C:\Users\md401\eclipse-workspace\tierney-aggregator\core\src\main\scala\tierney\core\EitherKSupport.scala:10: not found: type ?
...
from scalor-maven-plugin.
- can not reproduce, here is integration test:
https://github.com/random-maven/scalor-maven-plugin/tree/develop/src/it/test-any/src/main/scala/any
https://github.com/random-maven/scalor-maven-plugin/blob/develop/src/it/test-any/pom.xml#L75
https://github.com/random-maven/scalor-maven-plugin/blob/develop/src/it/test-any/verify.groovy#L20
- which builds fine on windows:
a) compile-main
includes all by default:
https://ci.appveyor.com/project/random-maven/scalor-maven-plugin/build/57/job/wh3rrapd543nsods#L4481
4481[INFO] [INFO] [compile-main] Sources list:
4482[INFO] C:\projects\scalor-maven-plugin\cross\2.12\target\it\test-any\src\main\scala\any\Main.scala
4483[INFO] C:\projects\scalor-maven-plugin\cross\2.12\target\it\test-any\src\main\scala\any\Skip.scala
b) scaladoc-main
excludes as configured in pom.xml
:
https://ci.appveyor.com/project/random-maven/scalor-maven-plugin/build/57/job/wh3rrapd543nsods#L4603
4604[INFO] [INFO] [scaladoc-main] Sources list:
4605[INFO] C:\projects\scalor-maven-plugin\cross\2.12\target\it\test-any\src\main\scala\any\Main.scala
from scalor-maven-plugin.
resolved https://github.com/random-maven/scalor-maven-plugin/releases/tag/1.4.0.20180329174003
from scalor-maven-plugin.
Can't reproduce the fix using 1.4.0.20180329174003, but I can't see the "Sources list:" line by setting <zincLogSourcesList>true</zincLogSourcesList>
either. Something seems very weird.
m50d/tierney#35 is where I'm trying to use this, the travis build https://travis-ci.org/m50d/tierney/builds/360624711 is showing the same behaviour I'm seeing. Can you see what I'm doing wrong?
from scalor-maven-plugin.
-
checking
-
zincLogSourcesList
is enabled and present incore
https://travis-ci.org/m50d/tierney/builds/360624711#L4780
https://travis-ci.org/m50d/tierney/builds/360624711#L3746
and not enabled and missing infree
, or did you mean something else? -
scaladocRegexScalaExclude
basic mistake was:
- need to use
full path
regex match pattern - NOT just file name match
<scaladocRegexScalaExclude>.+(EitherKSupport|FunctionKK|FunctorKK|FunctorK|LazyFunctionKK|FixKTest|package)[.]scala</scaladocRegexScalaExclude>
<scaladocRegexScalaExclude>.+(FreeApplicativeSupport|FreeSupport|TierneyFree|TierneyFreeTest|Programs|Github|ParallelApplicativeTest|package)[.]scala</scaladocRegexScalaExclude>
-
builds fine now
https://travis-ci.org/m50d/tierney/builds/361252354 -
given amount of exclude, scaladoc becomes meaningliness
- lets work with
zinc
/kind-projector
people to resolve underlying scaladoc issue
from scalor-maven-plugin.
Hmm, looks like I misread the logs and the exclude in tierney-core was working? Thanks for the fix.
Addressing the scaladoc issue is on my radar, but getting some sort of working scaladoc jar was the important thing as having a doc jar is a requirement for releasing to maven central.
from scalor-maven-plugin.
Build passed before merging but now can't resolve that release of the plugin? https://travis-ci.org/m50d/tierney/builds/361796725?utm_source=github_status&utm_medium=notification
from scalor-maven-plugin.
need to keep updating to live version, they change after each commit and by cron
https://bintray.com/random-maven/maven/scalor-maven-plugin_2.12
https://travis-ci.org/random-maven/scalor-maven-plugin/builds
from scalor-maven-plugin.
Thanks, working now.
from scalor-maven-plugin.
resolved by https://github.com/random-maven/scalor-maven-plugin/releases/tag/1.4.1.20180403213227
from scalor-maven-plugin.
Related Issues (20)
- relax plugin version verification rules HOT 7
- work around nsc.Settings ignoring `-D` user-set state HOT 6
- proper implementation for `scala.compiler.additionalParams` HOT 3
- use constant default options for JavaC and ScalaC HOT 4
- validate compile phases HOT 3
- mysterious encoding during flatten:flatten HOT 13
- zinc server HOT 1
- document windows build setup HOT 3
- Problems compiling twirl-templates HOT 1
- Provide Scala.js sbt plugin to Maven translation guide
- Provide Scala.js sbt plugin to Scalor mapping guide
- Scala library doesn't get picked if it's in test scope HOT 3
- Plugin thinks default target is 1.8, but is 1.6 when compiling for Scala 2.11.12 HOT 1
- Better advanced usage link HOT 2
- Bloop support HOT 2
- Scala source code to javadoc HOT 5
- Scala 3 Support
- Build Not Working Due to Bintray
- how to use in idea for scala.js?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalor-maven-plugin.