gitblit设置二级目录访问

由于我们只有一个域名暴露,特殊需求,所以需要二级目录访问
配置文件在 defaults.properties 第1985行
contextPath 改掉就好了

# Context path for the GO application. You might want to change the context
# path if running Gitblit behind a proxy layer such as mod_proxy.
#
# SINCE 0.7.0
# RESTART REQUIRED
server.contextPath = /git/

然后重启服务

kotlin-serialization 折腾记录

这个玩意儿呢,因为是kotlin官方支持的,体验一下

配置代码:

bulid.gradle
buildscript {
ext.kotlin_version = '1.3.50'
repositories { jcenter() }

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-serialization:$kotlin_version"
}
}

plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
id "com.github.johnrengelman.shadow" version "5.1.0"
}

apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'kotlinx-serialization'
apply plugin: "com.github.johnrengelman.shadow"

version "1.0.0"

repositories {
mavenCentral()
jcenter()
maven { url "https://kotlin.bintray.com/kotlinx" }
}

dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlinx:kotlinx-serialization-runtime:+"
api fileTree(dir: 'libs', include: ['*.jar'])
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}



gradle.properties
kotlin.code.style=official
mainKotlinVersion=1.3.50
mainLibVersion=0.13.0

先写这么多,这个至少能通过编译了