GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Refactor: use scala.util.Properties.isJavaAtLeast() · xyygithub/msgpack-java@8c165d2

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • project
    • Build.scala
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎project/Build.scala‎

Copy file name to clipboardExpand all lines: project/Build.scala
+3-5Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ import de.johoop.findbugs4sbt.FindBugs._
2222
import de.johoop.jacoco4sbt._
2323
import JacocoPlugin._
2424
import sbtrelease.ReleasePlugin._
25-
import xerial.sbt.Sonatype._
25+
import scala.util.Properties
26+
2627

2728
object Build extends Build {
2829

@@ -61,10 +62,7 @@ object Build extends Build {
6162
javacOptions in (Compile, compile) ++= Seq("-encoding", "UTF-8", "-Xlint:unchecked", "-Xlint:deprecation", "-source", "1.6", "-target", "1.6"),
6263
javacOptions in doc := {
6364
val opts = Seq("-source", "1.6")
64-
val (major, minor) = System.getProperty("java.version").split('.') match {
65-
case Array(major, minor, _) => (major.toInt, minor.toInt)
66-
}
67-
if ((major == 1 && minor >= 8) || (major > 1))
65+
if (Properties.isJavaAtLeast("1.8"))
6866
opts ++ Seq("-Xdoclint:none")
6967
else
7068
opts

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.