-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Spring boot 2.1.0 #9222
Conversation
Target travis to jhipster-generator 'spring-boot_2.1.0' branch
Spring boot 2.1.0
SB2 branch: fix CI
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
Added metrics-jmx
Review metrics imports
Update from Master
Update from Master
Update from Master
Downgrade maven-enforcer-plugin version to 3.0.0-M1 due to regression issue
Upgrade jacoco-maven-plugin version to 0.8.3
Upgrade consul version to 1.4.1
Upgrade traefik version to 1.7.8
Upgrade consul version to 1.4.2
Upgrade sonar-maven-plugin version to 3.6.0.1398
We have conflicts that needs to be resolved. @DanielFran can you rebase this branch from master? |
I'm ok to start the merge in master.
|
I think we can have JDK11 by default but we should make it very easy to
switch to JDK8 as well
Thanks & Regards,
Deepu
…On Fri, Feb 8, 2019 at 12:43 PM Pascal Grimaud ***@***.***> wrote:
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
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9222 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABDlF2Sij3bBwEZcRBFFWK7-a6L2USkVks5vLWLqgaJpZM4avHp2>
.
|
Switch to FixedPostgreSQL95Dialect
Switch to FixedPostgreSQL95Dialect
Merge branch 'master' into spring-boot_2.1.0 and resolve conflicts
@deepu105 I rebase from master branch! Let's wait to see if tests are green ;) |
|
@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('.', '\\.'))) |
There was a problem hiding this comment.
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)}`); |
There was a problem hiding this comment.
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' |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
...server/templates/src/main/java/package/config/lazy/LazyInitBeanFactoryPostProcessor.java.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"/> |
There was a problem hiding this comment.
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?
@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 |
@deepu105 sorry I am still learning using Git. Is this ok to merge? |
Bounty claimed https://opencollective.com/generator-jhipster/expenses/6950 |
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