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

Spring boot 2.1.0 #9222

Merged
merged 206 commits into from
Feb 9, 2019
Merged

Spring boot 2.1.0 #9222

merged 206 commits into from
Feb 9, 2019

Conversation

deepu105
Copy link
Member

@deepu105 deepu105 commented Feb 8, 2019

Fix #8683

  • Please make sure the below checklist is followed for Pull Requests.

  • Travis tests are green

  • Tests are added where necessary

  • Documentation is added/updated where necessary

  • Coding Rules & Commit Guidelines as per our CONTRIBUTING.md document are followed

@DanielFran @jdubois @pascalgrimaud are you ok with this

DanielFran and others added 30 commits October 30, 2018 23:15
Target travis to jhipster-generator 'spring-boot_2.1.0' branch
Removed liquibase-slf4j since liquibase 3.6 it is used slf4j
 Update infinispan cache configuration
Upgrade dropwizard metrics version to 4.0.3
Use infinispan-hibernate-cache-v53 instead of infinispan-hibernate-cache
@deepu105
Copy link
Member Author

deepu105 commented Feb 8, 2019

We have conflicts that needs to be resolved. @DanielFran can you rebase this branch from master?

@pascalgrimaud
Copy link
Member

I'm ok to start the merge in master.
But I have few points:

  • is jhipster lib already released ?
  • we switch to JDK11, is it what we want by default ?
  • once it's merged, we need to change the branch in Travis and Azure config

@deepu105
Copy link
Member Author

deepu105 commented Feb 8, 2019 via email

@atomfrede atomfrede added the v6 label Feb 8, 2019
@DanielFran
Copy link
Member

@deepu105 I rebase from master branch! Let's wait to see if tests are green ;)

@DanielFran
Copy link
Member

DanielFran commented Feb 9, 2019

@pascalgrimaud

  • jhipster lib is not released. Can we target master jhispter lib (after we merge in lib Spring boot 2.1.0 jhipster#174 to master) without make a release? Would like to wait for spring-boot 2.1.3 expected next Feb-15

  • With the rebase I keeped JDK11 for now

@pascalgrimaud
Copy link
Member

@DanielFran : yes it is possible, exactly what we did with spring boot 2.1 branch, now we can point to master

);
if (
!javaVersion.match(new RegExp('11'.replace('.', '\\.'))) &&
!javaVersion.match(new RegExp(constants.JAVA_VERSION.replace('.', '\\.')))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If java11 become the default version, we should change the value of JAVA_VERSION in generator-constants.js.
It is used in particular in pom.xml.

!javaVersion.match(new RegExp('11'.replace('.', '\\.'))) &&
!javaVersion.match(new RegExp(constants.JAVA_VERSION.replace('.', '\\.')))
) {
this.warning(`Java 8 or Java 11 are not found on your computer. Your Java version is: ${chalk.yellow(javaVersion)}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use constants.JAVA_VERSION rather than hardcoding java version here.
Ex : Java 8 or Java ${constants.JAVA_VERSION} are not found on your computer

@@ -54,8 +54,7 @@ plugins {
apply plugin: 'java'
sourceCompatibility=<%= JAVA_VERSION %>
targetCompatibility=<%= JAVA_VERSION %>
// Until JHipster supports JDK 9
assert System.properties['java.specification.version'] == '1.8'
assert System.properties['java.specification.version'] == '1.8' || '11'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed?
It it is, we should use a constant:

assert System.properties['java.specification.version'] == '1.8' || '<%= JAVA_VERSION %>'

@@ -235,6 +234,10 @@ repositories {
// more information at https://blogs.oracle.com/dev2dev/entry/how_to_get_oracle_jdbc
maven { url "https://maven.oracle.com" }
<%_ } _%>
// TODO To remove after final JHipster release
maven { url "http://oss.sonatype.org/content/repositories/snapshots" }
// TODO To remove after final Spring-cloud 2.1 release
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should be removed now since Spring Cloud has been released.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@@ -235,6 +234,10 @@ repositories {
// more information at https://blogs.oracle.com/dev2dev/entry/how_to_get_oracle_jdbc
maven { url "https://maven.oracle.com" }
<%_ } _%>
// TODO To remove after final JHipster release
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should create an issue to be sure to not forget this task.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

generators/server/templates/pom.xml.ejs Show resolved Hide resolved
generators/server/templates/pom.xml.ejs Show resolved Hide resolved
generators/server/templates/pom.xml.ejs Show resolved Hide resolved
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">

<%_ if (prodDatabaseType === 'mysql' || prodDatabaseType === 'mariadb') { _%>
<property name="autoIncrement" value="true"/>
<%_ } _%>
<%_ if (prodDatabaseType === 'postgresql' || prodDatabaseType === 'oracle' || prodDatabaseType === 'mssql') { _%>
<changeSet id="00000000000000" author="jhipster">
<createSequence sequenceName="hibernate_sequence" startValue="1000" incrementBy="50"/>
<createSequence sequenceName="sequence_generator" startValue="1000" incrementBy="50"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wondering: has Hibernate changed the default name of its database sequence?

@deepu105
Copy link
Member Author

deepu105 commented Feb 9, 2019

@DanielFran I see that you have merged master instead of rebasing from master. Normally I prefer rebasing as it keeps history in order. But if its harder to rebase its fine

@DanielFran
Copy link
Member

@deepu105 sorry I am still learning using Git.

Is this ok to merge?

@deepu105 deepu105 merged commit c3803e5 into master Feb 9, 2019
@deepu105 deepu105 deleted the spring-boot_2.1.0 branch February 9, 2019 12:34
@DanielFran
Copy link
Member

@jdubois jdubois added this to the 6.0.0-beta.0 milestone Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade to spring-boot 2.1.x