Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update gradle from 6.3 to 6.5.1 #6431

Closed
wants to merge 8 commits into from
Closed

Update gradle from 6.3 to 6.5.1 #6431

wants to merge 8 commits into from

Conversation

koppor
Copy link
Member

@koppor koppor commented May 6, 2020

See https://docs.gradle.org/6.4/release-notes.html and https://docs.gradle.org/6.5/release-notes.html for the release notes.

Not sure how following impacts us:

With this release, Gradle supports the Java Module System with everything you need to compile and execute tests for Java modules. You can also build Javadoc and run applications.

We need to fix our build file (?)

Execution failed for task ':generateBstGrammarSource'.
 
Caused by: java.lang.IllegalStateException: The value for task ':generateBstGrammarSource' property 'mainClass' is final and cannot be changed any further.

@koppor koppor marked this pull request as draft May 6, 2020 18:54
@koppor
Copy link
Member Author

koppor commented May 6, 2020

The issue seems to be here:

We need this special plugin as we use both ANTLR3 and ANTLR4. We cannot udpate our ANTLR3 grammar to ANTLR4. This is more than one hour effort since ANTLR changed consideradibly.

@tobiasdiez
Copy link
Member

tobiasdiez commented May 6, 2020

According to https://docs.gradle.org/6.4/userguide/java_library_plugin.html#declaring_package_visibility_and_services

The Java module system supports additional more fine granular encapsulation concepts than Gradle itself currently does. For example, you explicitly need to declare which packages are part of your API and which are only visible inside your module. Some of these capabilities might be added to Gradle itself in future versions.

Until this is implemented, there is no real hope for us to use these new module system features of gradle.

@Siedlerchr
Copy link
Member

Regarding the grammar task, would it be sufficient to change the variable name?
from what I understand the problem is that the variable name main has to be changed

@koppor
Copy link
Member Author

koppor commented May 12, 2020

Idea: Extend from a general gradle task and instantiate JavaExec internally (and do not inherit from it anymore)

@Siedlerchr
Copy link
Member

I maybe found a solution, the "=" has to be changed to set.
See:
gradle/gradle#12841
And https://github.com/franzbecker/gradle-lombok/pull/77/files for an implementation

* upstream/master: (50 commits)
  Keep group pane size when resizing window (#6180) (#6423)
  Changelog: Fix missing citation for biblatex-mla
  Update AUTHORS
  Check duplicate DOI (#6333)
  Fix missing citation for biblatex-mla
  Change EasyBind dependency (#6480)
  Add testing of latest dev version as mandatory
  Squashed 'src/main/resources/csl-styles/' changes from 5dad23d..586e0b8
  Fix libre office connection and other progress dialogs (#6478)
  Fix clear year and month field when converting to biblatex (#6434)
  Add truncate as a BibTex key modifier (#6427)
  Add new authors (not all - they need more work)
  Remove empty line
  Add simple Unit Tests for #6207 (#6240)
  Enforce LeftCurly rule (#6452)
  Implement task progress indicator (and dialog) in the toolbar (#6443)
  Consider empty brackets
  Changelog update
  Added a test
  Fixed brackets in regular expressions
  ...
@Siedlerchr
Copy link
Member

Siedlerchr commented May 25, 2020

Unfortunately my fixes didn't work, they compile, but afterwards the path is not found. Fck gradle.
Edit// Maybe this helps? https://github.com/liquibase/liquibase-gradle-plugin/pull/71/files

@koppor koppor changed the title Update gradle from 6.3 to 6.4 Update gradle from 6.3 to 6.5 Jun 16, 2020
@koppor koppor changed the title Update gradle from 6.3 to 6.5 Update gradle from 6.3 to 6.5.1 Jul 20, 2020
@Siedlerchr
Copy link
Member

Still errors with our plugins. My changes didn't work.

@koppor koppor closed this Jul 21, 2020
@koppor koppor deleted the udpate-gradle-to-64 branch July 21, 2020 06:28
@Siedlerchr
Copy link
Member

Still does not work with gradle 6.7 , however I noticed that they reworked the plugin:
I don't know much of this gradle stuff, but maybe this helps?

https://github.com/gradle/gradle/blob/fa4d3ad3ffd3ec3c321e5715879cecbb85a2aebd/subprojects/antlr/src/main/java/org/gradle/api/plugins/antlr/AntlrPlugin.java#L53-L57

@Siedlerchr Siedlerchr mentioned this pull request Nov 14, 2020
5 tasks
koppor pushed a commit that referenced this pull request Apr 15, 2023
4728902faa Create wiley-was.csl (#6283)
5853909f89 Create journal-of-human-nutrition-and-dietetics.csl (#6311)
286a3606c1 Create stanovnistvo.csl (#6431)
22a7139dc5 Update zitierguide-leitfaden-zum-fachgerechten-zitieren-in-rechtswiss… (#6489)
e51e9363ee Update netherlands-journal-of-geosciences-geologie-en-mijnbouw.csl (#6493)
4e1a69231c Add Bristol UP dependents (auto-generated) (#6494)
c9021437a4 Create microbiome-research-reports.csl (#6371)
f71e516dda Update harvard-anglia-ruskin-university.csl (#6365)
c187663e75 Create publicatiewijzer.csl (#6316)

git-subtree-dir: buildres/csl/csl-styles
git-subtree-split: 4728902faa1ef43c0d89366c77b7ea8f46c6730f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants