{"payload":{"allShortcutsEnabled":false,"fileTree":{"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"config","path":"config","contentType":"directory"},{"name":"cppbuild","path":"cppbuild","contentType":"directory"},{"name":"csharp","path":"csharp","contentType":"directory"},{"name":"gocode","path":"gocode","contentType":"directory"},{"name":"gradle","path":"gradle","contentType":"directory"},{"name":"rust","path":"rust","contentType":"directory"},{"name":"sbe-benchmarks","path":"sbe-benchmarks","contentType":"directory"},{"name":"sbe-samples","path":"sbe-samples","contentType":"directory"},{"name":"sbe-tool","path":"sbe-tool","contentType":"directory"},{"name":".gitattributes","path":".gitattributes","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":"CMakeLists.txt","path":"CMakeLists.txt","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"build.gradle","path":"build.gradle","contentType":"file"},{"name":"gradle.properties","path":"gradle.properties","contentType":"file"},{"name":"gradlew","path":"gradlew","contentType":"file"},{"name":"gradlew.bat","path":"gradlew.bat","contentType":"file"},{"name":"settings.gradle","path":"settings.gradle","contentType":"file"},{"name":"version.txt","path":"version.txt","contentType":"file"}],"totalCount":22}},"fileTreeProcessingTime":3.899241,"foldersToFetch":[],"repo":{"id":12559641,"defaultBranch":"master","name":"simple-binary-encoding","ownerLogin":"real-logic","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2013-09-03T09:13:34.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/5371471?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"master","listCacheKey":"v0:1708953937.0","canEdit":false,"refType":"branch","currentOid":"fae3e45ae39d78f5b8db2bf06cab752be352b0cc"},"path":"build.gradle","currentUser":null,"blob":{"rawLines":["/*"," * Copyright 2013-2024 Real Logic Limited."," *"," * Licensed under the Apache License, Version 2.0 (the \"License\");"," * you may not use this file except in compliance with the License."," * You may obtain a copy of the License at"," *"," * https://www.apache.org/licenses/LICENSE-2.0"," *"," * Unless required by applicable law or agreed to in writing, software"," * distributed under the License is distributed on an \"AS IS\" BASIS,"," * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied."," * See the License for the specific language governing permissions and"," * limitations under the License."," */","","import java.nio.file.Files","import java.nio.file.StandardOpenOption","import java.security.MessageDigest","","buildscript {"," repositories {"," gradlePluginPortal()"," mavenCentral()"," }"," dependencies {"," classpath 'org.ow2.asm:asm:9.6'"," classpath 'org.ow2.asm:asm-commons:9.6'"," }","}","","plugins {"," id 'java-library'"," id 'com.github.johnrengelman.shadow' version '8.1.1' apply false"," id 'com.github.ben-manes.versions' version '0.51.0'","}","","defaultTasks 'clean', 'build'","","static def getBuildJavaVersion() {"," def buildJavaVersion = System.getenv('BUILD_JAVA_VERSION') ?: JavaVersion.current().getMajorVersion()"," if (buildJavaVersion.indexOf('.') > 0) {"," buildJavaVersion = buildJavaVersion.substring(0, buildJavaVersion.indexOf('.'))"," }"," if (buildJavaVersion.indexOf('-') > 0) {"," buildJavaVersion = buildJavaVersion.substring(0, buildJavaVersion.indexOf('-'))"," }"," Integer.parseInt(buildJavaVersion)","}","int buildJavaVersion = getBuildJavaVersion()","","def toolchainLauncher = javaToolchains.launcherFor {"," languageVersion = JavaLanguageVersion.of(buildJavaVersion)","}","","def checkstyleVersion = '9.3'","def hamcrestVersion = '2.2'","def mockitoVersion = '4.11.0'","def junitVersion = '5.10.2'","def jmhVersion = '1.37'","def agronaVersion = '1.21.0'","def agronaVersionRange = '[1.21.0,2.0[' // allow any release >= 1.20.0 and < 2.0.0","","def sbeGroup = 'uk.co.real-logic'","def sbeVersion = file('version.txt').text.trim()","","ext {"," isReleaseVersion = !sbeVersion.endsWith('-SNAPSHOT')"," releasesRepoUrl = 'https://oss.sonatype.org/service/local/staging/deploy/maven2/'"," snapshotsRepoUrl = 'https://oss.sonatype.org/content/repositories/snapshots/'",""," if (!project.hasProperty('ossrhUsername')) {"," ossrhUsername = ''"," }",""," if (!project.hasProperty('ossrhPassword')) {"," ossrhPassword = ''"," }","}","","def projectPom = {"," name = 'sbe'"," description = 'FIX/SBE - OSI layer 6 presentation for encoding and decoding application messages' +"," ' in binary format for low-latency applications.'"," url = 'https://github.com/real-logic/simple-binary-encoding'",""," scm {"," connection = 'scm:git:github.com/real-logic/simple-binary-encoding.git'"," developerConnection = 'scm:git:github.com/real-logic/simple-binary-encoding.git'"," url = 'github.com/real-logic/simple-binary-encoding.git'"," }",""," licenses {"," license {"," name = 'The Apache License, Version 2.0'"," url = 'https://www.apache.org/licenses/LICENSE-2.0.txt'"," }"," }",""," developers {"," developer {"," id = 'tmontgomery'"," name = 'Todd L. Montgomery'"," email = 'tmont@nard.net'"," url = 'https://github.com/tmontgomery'"," }"," developer {"," id = 'mjpt777'"," name = 'Martin Thompson'"," email = 'mjpt777@gmail.com'"," url = 'https://github.com/mjpt777'"," }"," developer {"," id = 'odeheurles'"," name = 'Olivier Deheurles'"," email = 'olivier@weareadaptive.com'"," url = 'https://github.com/odeheurles'"," }"," developer {"," id = 'RichardWarburton'"," name = 'Richard Warburton'"," email = 'richard.warburton@gmail.com'"," url = 'https://github.com/RichardWarburton'"," }"," developer {"," id = 'BillSegall'"," name = 'Bill Segall'"," email = 'bill.segall@gmail.com'"," url = 'https://github.com/BillSegall'"," }"," developer {"," id = 'mikeb01'"," name = 'Mike Barker'"," email = 'mikeb01@gmail.com'"," url = 'https://github.com/mikeb01'"," }"," developer {"," id = 'vyazelenko'"," name = 'Dmitry Vyazelenko'"," email = 'vyazelenko@yahoo.com'"," url = 'https://github.com/vyazelenko'"," }"," }","}","","allprojects {"," repositories {"," mavenLocal()"," mavenCentral()"," }",""," configurations.configureEach {"," resolutionStrategy {"," failOnVersionConflict()"," }"," }",""," tasks.withType(JavaExec).configureEach {"," javaLauncher.set(toolchainLauncher)"," }","}","","jar.enabled = false","","subprojects {"," apply plugin: 'java-library'"," apply plugin: 'checkstyle'",""," group = sbeGroup"," version = sbeVersion",""," java {"," toolchain {"," languageVersion = JavaLanguageVersion.of(buildJavaVersion)"," }"," }",""," checkstyle.toolVersion = \"${checkstyleVersion}\"",""," tasks.withType(Sign).configureEach {"," onlyIf {"," isReleaseVersion && gradle.taskGraph.hasTask(tasks.publish)"," }"," }",""," tasks.withType(Jar).configureEach {"," enabled = true"," includeEmptyDirs = false"," }",""," tasks.withType(JavaCompile).configureEach {"," options.encoding = 'UTF-8'"," options.deprecation = true"," options.compilerArgs.addAll(['-Xlint:all', '-Werror']) // Enable all warnings and treat them as errors"," }",""," javadoc {"," failOnError false"," title = '